A documentation system for mortals. Use with any language.
Generates a static, searchable JSDoc style documentation from source code. Uses a customizable template system, and will process a markdown folder (aka "more" folder) where auxiliary documentation (outside of source code) can reside.
Since documon doesn't infer anything from the source code (all methods and arguments must be tagged manually), you maintain full control over the final output structure.
Run from CLI, or integrate into node project.
See full documentation at:
https://www.documon.net
NPM: https://www.npmjs.com/package/documon
Github: https://github.com/bobtherobot/documon
Directly: https://www.documon.net (as "stand alone" )
In Node (javascript)
Install via NPM:
npm install documon
Generate Docs:
var docs = require("documon");
doc({
src : "/path/to/src/code",
out : "/path/to/docs/output",
more : "/where/are/more/markdowns",
ignore : [
'/path/to/src/dont/process/me',
'/path/to/src/node_modules'
],
name : "My Project",
version : "1.0.0",
launch : false,
print : true,
dumpData : true,
sourceExt : ["js"],
gati : 'UA-106684927-1'
});
From CLI
Generate docs:
node /path/to/documon/index.js "/path/to/source/code" "/path/to/destination"
Comment tags are soley responsible for organizing the resulting heirarchy (inheritence and membership).
As a result, comment blocks must be robust and include all pertinent details required to generate documentation.
Documon is written in Javascript and runs on the Node platform, which runs on Linux, Mac, and Windows systems. Documon can be installed using NPM, or ↆ downloaded directly.
Templating is handled through vanilla javascript modules, leveraging ES6's Template Literals. This provides the highest level of flexability with zero-dependancies, unlimited logic constraints, and nothing new to learn.
Of course, since templates are JS, you can always roll some other templating system, such as Twig, or Handlebars, into your custom template.
Documon's only dependancy is Node, no additional modules are needed.
Copyright © Mike Gieson.
Released under the MIT license.
.