JsDoc sample app
This is just demo app, how we can add jsdoc in our nodejs app or any javascript projects like Appcelerator Titnaium, Cordova PhoneGap, AngularJs...
Fresh setup
npm init
//fill all the questions need to setup new projectAdd jsDoc and docstrap
npm install --save-dev jsdoc
npm install --save-dev ink-docstrap
Add comments in javascript code (please flow format http://usejsdoc.org/)
Add
"jsdocs":"jsdoc -c jsdocConfig.json src -t ./node_modules/ink-docstrap/template -R README.md -r -d docs"
under scripts in package.jsonOnce done with comments, just
npm run jsdocs
from root folderIn root folder it will create new folder called docs. Open index.html and see.
Download & Run this code
- Just run below command from project root folder
npm install
- or
npm update
Just
npm run jsdocs
from root folderIn root folder it will create new folder called docs. Open index.html and see.
Reference links
http://usejsdoc.org/about-commandline.html
https://github.com/docstrap/docstrap#configuring-the-template
http://usejsdoc.org/
http://typedoc.org/guides/installation/