Reputation: 461
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 repository recommends to use JSDoc 3 instead. I have downloaded JSDoc from Github and unzipped the jsdoc-master folder onto my local disk but can't find any solid information as to how to use it to parse my files.
Upvotes: 21
Views: 25167
Reputation: 3762
I don't know very much about NodeJS/npm ecosystem. However, I did the following steps below and it worked for me (on windows):
I am not sure if question of OP is answered but JSDoc works for me this way.
Upvotes: 0
Reputation: 461
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
Upvotes: -1
Reputation: 15
The installation is not good documented on the project-page.
It is much better exlained on the github-page.
Upvotes: 0
Reputation: 762
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)
Upvotes: 25