Compiles a tree of Github-flavored markdown files into themable HTML templates. Supports pulling directly from multiple remote or local git repositories and exposes lifecycle hooks for transforming markdown input (
beforeConvert) or HTML output (
afterConvert). Also writes flat tree arrays representing the directory hierarchy as JSON files (these are saved as
.jsmenu files currently, but never fear, they're just normal JSON).
This module is used for the official Sails website at http://sailsjs.org.
$ npm install doc-templater --save
Refactored to use smaller, more testable modules and enhance stability. Also added some caching/performance improvements.
Now supports git branches, infinitely deep docs directories, and outputting json menus with template metaData attached (use
<docmeta name="keyname" value="keyvalue">inside of templates).