Skip to content

A Markdown formatter for dox. Takes dox's JSON output as stdin and writes Markdown to stdout.

License

Notifications You must be signed in to change notification settings

mikaelbr/doxme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doxme

build status

create markdown docs for dox output

doxme(dox, readme, package, travis)

A Markdown formatter for dox. Takes dox's JSON output as stdin and writes Markdown to stdout.

CLI Usage

dox -r < index.js | doxme

See Also

Parameters

parameter type description
dox Object the output of dox as a parsed JSON object
readme boolean whether to output a readme or just docs
package Object a parsed package.json
travis boolean whether to output a travis badge along with docs

Example

var fs = require('fs');
var dox = require('dox');
var doxme = require('doxme');

var sourceCode = fs.readFileSync('./index.js', 'utf8');
var documentation = doxme(dox.parseComments(sourceCode));

Returns String, documentation

Installation

Requires nodejs.

$ npm install doxme

Tests

$ npm test

About

A Markdown formatter for dox. Takes dox's JSON output as stdin and writes Markdown to stdout.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%