routedox is a quick tool I put together that uses dox and mustache to recurse through files in a directory and output JSDoc formatted block comments as an html file.
Any block comment flagged as @api private
will not be output.
node routedox
in the directory you want to generate docs for.
Block comments should be formatted as follows:
/**
* NAME OF YOUR FUNCTION
*
* Description of your function
*
* @param {paramType} paramName paramDescription
* @return {returnType} returnDescription
* @api public <--- this field must exist for routedox to pick up the comment.
*/
You can also use markdown syntax to flag input and output similar to the following:
/**
* NAME OF FUNCTION
*
* Description of your function
*
* ###Input:
* `foo : String`
*
* ###Output:
* `bar : Number`
* @api public
*/