Jump To …

Name

docco-husky

Description

Generated static project documentation primarily for node.js projects. A fork of Docco

Version

0.2.2

Author

Mike Brevoort <mike@brevoort.com>

Contributors

Mike Brevoort <mike@brevoort.com>

Jeremy Ashkenas

Repository

git - git://github.com/mbrevoort/docco-husky.git

Dependencies

  • coffee-script latest
  • dox 0.1.2
  • jade 0.17.0
  • gravatar 1.0.3

Stats

http://cloc.sourceforge.net v 1.55  T=0.5 s (4.0 files/s, 1470.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Javascript                       1              0              3            353
CoffeeScript                     1             68            126            185
-------------------------------------------------------------------------------
SUM:                             2             68            129            538
-------------------------------------------------------------------------------

Overview

A streamlined static site generator for project documentation based on Docco. "Husky" because it's bigger and more irregular than Docco, like Husky Jeans you would buy at Sears back in the day.

A fork of Docco, intended to go beyond the appropriate scope of Docco itself. Forked because Docco itself is pretty simple and this is intended to diverge. The initial fork included merged pull requests from nevir and jswartwood for their work on supporting recursive directories and an improved "Jump To" menu.

Examples

Check out the generated documentation for this project.

Or these other samples

Installation

Possible Gotchas

  • Docco requires Pygments to be installed and will try to install it if it's not already.
  • Perl is required for cloc

To install via npm into your project:

npm install docco-husky

Install globally:

[sudo] npm install -g docco-husky

Or include as a dependency in your package.json

Generating Documentation

docco-husky will generate docs in a ./docs directory. It accepts multiple files (including wildcards) and directories for it to recurse.

docco-husky -name "<optional project name>" <list of files>

Examples

# from a local install
./node_modules/.bin/docco-husky app.js lib public

# with a project name
./node_modules/.bin/docco-husky -name "My Project" app.js lib public

# with wildcards
./node_modules/.bin/docco-husky -name "My Project" *.js lib public

# with global install
docco-husky -name "My Project" *.js lib public

Output

docco-husky will write generated files to ./docs .

For all source files, the output will be like . (e.g. foo.js) --> .html (e.g. foo.html).

A readme.html will be generate and will include a formatted version of a README.md if your project includes it, some details from the a package.json file, and project stats generated by cloc.

Single line comments will only be parsed with the exception os Javascript (as of 0.2.0) which is in an early experimental state. Javascript multiline source will be parsed plus JSDoc style tags will be parsed using Dox

generated Wed Nov 16 2011 09:22:03 GMT-0700 (MST)
Docco Husky