UsageDownload the JSDoc tarball from Sourceforge and install it as below:
# Download the latest JSDocNow, you're ready to go.
$ wget "http://downloads.sourceforge.net/jsdoc/JSDoc-1.10.2.tgz"
$ tar xvzf JSDoc-1.10.2.tgz
$ cd JSDoc-1.10.2
$ perl jsdoc.pl test.jsThis should output a set of HTML files in a directory called js_docs_out.
This documentation tool seems to work when you implement the application along the object oriented notation, otherwise it doesn't work.
I have an error...If you get an error message right away that looks something like:
Can't locate HTML/Template.pm in @INC ......Then you will need to install the HTML::Template Perl module.
Open a terminal and run the following command as root:
$ sudo perl -MCPAN -e 'install HTML::Template'