Combine several HTML files into one. Updates links to images and changes links to pages to use anchors.
npm install metalsmith-bookify-html
var bookifyHtml = require('metalsmith-bookify-html');
new Metalsmith(__dirname)
.use(bookifyHtml(options))
.build()-
destString, defaultbook.htmlWhere the file will be written.
-
indexFileStringorString[], default["index.html", "index.md"]When a link is to a folder, the plugin will automatically attempt to scan for an index file with these names. Even though the name could end in
.md, it must be an HTML file. -
metadataObject, default{}Sets these metadata properties on the destination file. Useful for template systems, file processing filters, etc.
-
selectorString, defaultbodyThe CSS selector to use for finding the content to append. The target element will not be included, just its
innerHTML. -
srcString|Array<String>, defaultindex.htmlFiles to be included in the book as a starting point. All local links within the book are scanned as well.
MIT License, see LICENSE for details.