h2s v5.10.12
Hydrogen Sulfide
Treat your really long HTML scroll with some sulfur!
Surgical pagination of content into responsive pages of equal size that remain above the fold.
Installation
H2S is a CLI.
$ npm i -g h2s
$ h2s --help # VocabularyUsage
$ h2s [options] [command]
Options:
-V, --version output the version number
-v, --version output the version number
-h, --help output usage informationCommands
1. $ h2s objectify|o # Turn `sanitized.html` into an 'array like' JSON.
2. $ h2s pagify|p # Paginate with gadda-gadda line-tracking!
3. $ h2s bookify|b # Templatize markup with layout to form actual pagesSteps and their meaning:
Place your
sanitized.htmlat./interimfolder (sibling to themanuscriptfolder at the root of your Bookiza project).Execute
$ h2s objectifyto pull up the contents into a set of key: value pairs.Run
$ h2s pagifyto paginate the key: value pairs according to a responsive template at./templatesfolder.Run
$ h2s bookifyto apply layout on paginated content and produce book. And voila, your Superbook is ready!
Run $ bookiza server to load your book on development server at localhost:4567.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago