This plugin can be used on: .js files and even on .coffee and .ts files after using the right plugin
jsdoc
needs to be available from the console.
Options :
- d : the folder where all documentation must be generated, relative to outdir.
- c : the path of the config.json for jsdoc, relative to template folder
- t : absolute path for the template
Sample usage:
malta app/source/index.js public/js -plugins=malta-jsdoc[outFolder:\"docs\"]
or in the .json file :
"app/source/index.js" : "public/js -plugins=malta-jsdoc[d:'docs']",
"app/source/index.ts" : "public/js -plugins=malta-typescript...malta-jsdoc[d:'docs']"
or in a script :
var Malta = ;Maltastart {var s = this;consoleconsole;'plugin' in o && console;console;};