Forgive me if this is a daft question but I\'m utterly baffled as to how I can use JSDoc on Windows. I\'m aware of JSDoc-Toolkit but it\'s a bit out of date and the google code
You can download it as an npm package for the Node.js JavaScript runtime environment.
Install JsDoc by typing the following command
npm install -g jsdoc
Run JsDoc / generate documentation. more info
jsdoc path/to/file.js
Configure jsdoc (Optional)
The installation is not good documented on the project-page.
It is much better exlained on the github-page.
I'm not saying this is necessarily the best way, but it worked for me:
Install node.js
Open a command prompt
As a test, create a folder in your root drive (c:\test
) and go to it (cd\test
). I guess there was some sort of permission issue as I couldn't get the following steps to work in my desktop folder.
Install the JSDoc package: npm install jsdoc
There should be a folder in test
called node_modules
Go to the .bin
subfolder in node_modules
There should be a file called jsdoc.cmd
. Simple use jsdoc myfile.js
in the command prompt to execute the JSDoc script on your file