Skip to content

This repo contains a wrapper around the 'dox' engine so that route documentation can be auto-generated from JSDoc comments. Routes only take a req param, but often the req contains a few params in a query string or POST body...routedox is how we generate documentation for those.

Notifications You must be signed in to change notification settings

mfrobben/routedox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

routedox

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.

Usage

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
 */

About

This repo contains a wrapper around the 'dox' engine so that route documentation can be auto-generated from JSDoc comments. Routes only take a req param, but often the req contains a few params in a query string or POST body...routedox is how we generate documentation for those.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published