Skip to content

thalesfsp/angular-jsdoc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular-JSDoc

JSDoc 3 Template for AngularJS.
A JSDoc plugin and template for AngularJS, nothing else!

Features

  • Right side TOC, table of contents, for navigation by Directives, Services, Controllers, etc
  • Read and process @ngdoc tag

How Does It Look Like

Install

$ npm install jsdoc angular-jsdoc --save-dev

Run In Command Line

Run jsdoc command to generate your documentation. All command line options are the options of jsdoc

$ path/to/jsdoc -c path to conf> -t <template> <your source code>

In example,

`$ node_modules/jsdoc/jsdoc.js -c node_modules/angular-jsdoc/conf -t node_modules/angular-jsdoc/template -r myDir`

Run with gulp-jsdoc

  1. install gulp-shell
    $ npm install gulp-shell --save-dev

  2. add the following to the gulpfile.json

    var shell = require('gulp-shell'); 
    gulp.task('docs', shell.task([ 
      'node_modules/jsdoc/jsdoc.js '+ 
        '-c node_modules/angular-jsdoc/conf.json '+   // config file
        '-t node_modules/angular-jsdoc/template '+    // template file
        '-d build/docs '+                             // output directory
        './README.md ' +                              // to include README.md as index contents
        '-r app/scripts'                              // source code directory
    ])); 
    
  3. run gulp task
    $ gulp docs

Example of Directive Documentation

Example of Service Documentation

About

AngularJS Template/Plugin for JSDoc 3.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.8%
  • CSS 27.2%