1.3.0 • Published 1 year ago

metalsmith-bookify-html v1.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

metalsmith-bookify-html

Combine several HTML files into one. Updates links to images and changes links to pages to use anchors.

Installation

npm install metalsmith-bookify-html

Usage

var bookifyHtml = require('metalsmith-bookify-html');

new Metalsmith(__dirname)
    .use(bookifyHtml(options))
    .build()

options Object

  • dest String, default book.html

    Where the file will be written.

  • indexFile String or String[], 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.

  • metadata Object, default {}

    Sets these metadata properties on the destination file. Useful for template systems, file processing filters, etc.

  • selector String, default body

    The CSS selector to use for finding the content to append. The target element will not be included, just its innerHTML.

  • src String|Array<String>, default index.html

    Files to be included in the book as a starting point. All local links within the book are scanned as well.

License

MIT License, see LICENSE for details.

1.3.0

1 year ago

1.2.2

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.3

3 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago