gulp HTMLBook

Contains gulp plugins to convert from HTMLBook to HTML.

layout

layout.template()

Layout content in a templates, and replace variables in the content
### layout.ordering()
Adds prev_url, next_url, prev_label, next_label variables to each file
### layout.navigation()
Create the navigation html by passing the nav json through a template
### layout.index()
Create the index html by passing the index json through a template
### layout.chunk()
Split the content from a single HTMLBook file into chunks, at the chapter or section level

generate

generate.map()

Run through a stream of documents and generate reference objects for each file and every id, returns json
### generate.index()
Find all index terms in a stream of documents and sort them, returns json
### generate.nav()
Find all the headers in a stream of documents and create the nav for the Table of Contents, returns json.