apeman-doc

5.0.5 • Public • Published

apeman-doc

Build Status Code Climate Code Coverage npm Version JS Standard

Document generator for apeman.

Installation

Install apeman-doc module via npm.

$ npm install apeman-doc -g

Usage

  1. Prepare an Apemanfile.js at your project root.
  2. Run the command via CLI.

Apemanfile.js

/** Example of Apemanfile.js */
 
'use strict'
 
module.exports = {
  $cwd: __dirname,
  $pkg: { /* ... */ },
  $proto: [ /* ... */ ],
  $api: { /* ... */ }
}
 

Then,

# Generate doc about current apemanfile. 
$ apeman-doc apemanfile doc/apemanfile-doc.md
CLI Options
$ apeman-doc -h
 
  Usage: apeman-doc [options] 
 
  Generate project documentation.
 
  Options:
 
    -h, --help                           output usage information
    -V, --version                        output the version number
    -o, --out <out>                      Output directory path.
    -c, --configuration <configuration>  Pathname of Apemanfile
    -C, --context <context>              Pathname of mock context file.
 
  Examples:
 
    $ apeman-doc -o doc/apdoc.md                    # Generate apemanfile doc. 
 
 

Programmatic API

apeman-doc also provide programmatic API.

Firstly, install the module locally.

$ npm install apeman-doc --save-dev

Then,

'use strict'
 
const apemanDoc = require('apeman-doc')
 
apemanDoc("apemanfile", "doc/apemanfile-doc.md", {}).then(() => {
    /* ... */
})
Programmatic Options
Key Description Default
out Output directory path. doc/apdoc.md
configuration Pathname of Apemanfile
context Pathname of mock context file.

License

This software is released under the MIT License.

Links

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.53latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.53
5.0.40
5.0.32
5.0.23
5.0.10
5.0.01
4.0.33
4.0.21
4.0.11
4.0.02
3.0.01
2.3.31
2.3.20
2.3.10
2.3.00
2.2.01
2.1.01
2.0.30
2.0.20
2.0.10
2.0.00
1.1.30
1.1.21
1.1.11
1.1.00
1.0.61
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i apeman-doc

Weekly Downloads

23

Version

5.0.5

License

MIT

Last publish

Collaborators

  • okunishinishi