Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

doco

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doco

The JavaScript documentation generator used in dojo, the node.js application server.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

doco

The JavaScript documentation generator used in dojo. Totally technical, yet unstable but working. Contributors welcome!

Usage

npm install doco

JSON (default)

doco < sourcefile.js > docs.json

Emits raw parser results.

Markdown

doco -gen=markdown < sourcefile.js > DOCS.md

Generates GitHub-flavoured markdown with a TOC.

HTML

doco -gen=html < sourcefile.js > docs.html

Generates only the actual HTML portion of the docs from markdown, no html or head tags. So, chain it to include your own headers and footers to apply your own stylings, e.g.:

cat header.html > docs.html && doco -gen=html < sourcefile.js >> docs.html && cat footer.html >> docs.html

Creating custom generators

Take a look at the generators available in the gen/ directory. It's pretty straight forward.

API (generated with doco)

var doco = require("doco");
...

doco

  • doco
  • doco.dox
  • doco.marked
  • doco.gen
  • doco.doco(source, gen*)

doco

doco namespace.

doco.dox

Bundled / modified dox.

doco.marked

Bundled / modified marked.

doco.gen

Available generators inside the gen/ folder.

doco.doco(source, gen*)

Parses a source and returns the generated doco.

NameTypeDescription
sourcestringSource contents
gen*(string ¦ function(Array):string)Generator to use. May be the name of a generator or a generator function.
returnsstringGenerated doco

Examples

Credits

Based on customized version of dox by TJ Holowaychuk and marked by Christopher Jeffrey.

License

Apache License, Version 2.0

Keywords

documentation

FAQs

Package last updated on 20 Apr 2013

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