You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

yocto-doc

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yocto-doc

Generate documention for javascript source from JsDoc

2.1.6
Source
npmnpm
Version published
Weekly downloads
37
1750%
Maintainers
1
Weekly downloads
 
Created
Source

NPM

alt text Code Climate Test Coverage Issue Count Build Status

Overview

This module generate documentation from source.

Documentation was builded with jsDoc and with customized postman-jsdoc-theme.

How to use ?

First install with npm command.

# If you install from npm registry
npm install yocto-doc --save-dev

After that configure your project's Gruntfile with a new section named yoctodoc (see below).

grunt.initConfig({
  yoctodoc : {
      options : {
        // change your path destination
        destination : 'Your_new_absolute_destination_path'
      },
      // Set all your file here
      all : [ 'file.js', 'file2.js', 'file3.js', 'OR a path all js files are added' ]
    }
});

// load task
grunt.loadNpmTasks('yocto-doc');
// register task
grunt.registerTask('doc', 'yoctodoc');

And run grunt command

grunt doc

How to add external files on documentation directory ?

To use this feature you can use copyExtraFiles property on your grunt file. You can use full path or wilcard to find wanted files.

grunt.initConfig({
  yoctodoc : {
      options : {
        // change your path destination
        destination : 'Your_new_absolute_destination_path'
        copyExtraFiles : [ 'mayfile.myextension', './directory/myfile.extension', './directory/*.js' ]
      },
      // Set all your file here
      all : [ 'file.js', 'file2.js', 'file3.js', 'OR a path all js files are added' ]
    }
});

How looks like the custom theme ?

See below kind of examples.

Screen One Screen Two Screen Three Screen Four

Keywords

grunt

FAQs

Package last updated on 05 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts