Skip to content

A Go-based, open-source CLI tool without dependencies that converts HTML files into books.

License

Notifications You must be signed in to change notification settings

bookprint/bookprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BookPrint

Docker

A Go-based, open-source CLI tool without dependencies that converts HTML files into books.

⚙️ Get Started

You'll need Go installed.

Install

First of all, you need to install bookprint locally:

$ go install stefanco.de/bookprint/cmd/bookprint

This will install bookprint into $GOROOT/bin.

Run locally

Then you're able to run bookprint locally:

$ bookprint --help

👨‍💻 Usage

This message is also available when running $ bookprint --help.

Usage:
        bookprint [options...] <file>

Options:
        -t, --template-dir <dir>    Path to the directory containing custom templates used for generating the book.
        -o, --output-dir <dir>      Path to the directory where the generated book pages will be stored.
        -s, --static-dir <dir>      Path to the directory with additional files for the book. Copied to output directory.
        -v, --version               Print the version number.
        -h, --help                  Print the help message.

Examples:
        Reading from HTML file:
        $ bookprint --template-dir templates --output-dir out examples/index.html
        > Created book in 'out' directory

        Reading from STDIN:
        $ echo "<html>...</html>" | bookprint --template-dir templates --output-dir out --
        > Created book in 'out' directory

🔨 Technology

The following technologies, tools and platforms were used during development.

👷‍ Error Found?

Thank you for your message! Please fill out a bug report.

License

This project is licensed under the European Union Public License 1.2.

About

A Go-based, open-source CLI tool without dependencies that converts HTML files into books.

Topics

Resources

License

Stars

Watchers

Forks