h2s
Convert markdown to Superbook (e-book for web)
Last updated a year ago by marvindanig .
BOL · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install h2s -g
SYNC missed versions from official npm registry.
Tech Interview Handbook

Read the blogpost.

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 		# Vocabulary


Usage

$ h2s [options] [command]

Options:
  -V, --version      output the version number
  -v, --version      output the version number
  -h, --help         output usage information

Commands

  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 pages

Steps and their meaning:

  1. Place your sanitized.html at ./interim folder (sibling to the manuscript folder at the root of your Bookiza project).

  2. Execute $ h2s objectify to pull up the contents into a set of key: value pairs.

  3. Run $ h2s pagify to paginate the key: value pairs according to a responsive template at ./templates folder.

  4. Run $ h2s bookify to 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.

Current Tags

  • 5.10.12                                ...           latest (a year ago)

20 Versions

  • 5.10.12                                ...           a year ago
  • 5.9.12                                ...           a year ago
  • 5.8.12                                ...           a year ago
  • 5.7.12                                ...           a year ago
  • 5.6.12                                ...           a year ago
  • 4.6.11                                ...           a year ago
  • 3.6.11                                ...           a year ago
  • 3.6.10                                ...           a year ago
  • 3.5.10                                ...           a year ago
  • 3.4.10                                ...           a year ago
  • 3.4.9                                ...           a year ago
  • 3.3.9                                ...           a year ago
  • 3.2.9                                ...           a year ago
  • 3.2.8                                ...           a year ago
  • 2.1.8                                ...           a year ago
  • 2.1.7                                ...           a year ago
  • 2.1.6                                ...           a year ago
  • 2.1.5                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 1.0.4                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (13)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |