sample-jsdoc-generator

1.0.2 • Public • Published

JS Doc Generator Example

An example of running jsdoc-generator within your application to render documentation.

# install the package 
npm install
 
# run documentation 
npm run doc
 
# view the documentation generated at: 
open dest/documentation/

The ./doc.js file has the sample setup to generate the documentation:

/*eslint-env es6, node */
'use strict';
 
const config = require('./config');
const Helper = require('./helper');
const Generator = require('jsdoc-generator');
 
const jsdoc = new Generator({
    dest: config.dir.dest + '/documentation',
    paths: [{
        name: 'my.app',
        source: config.dir.base + '/sample/app'
    },
    {
        name: 'my.other.app',
        source: config.dir.base + '/sample/other-app'
    }]
});
 
jsdoc.generate();

Readme

Keywords

none

Package Sidebar

Install

npm i sample-jsdoc-generator

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • mitzerh