A Go-based, open-source CLI tool without dependencies that converts HTML files into books.
You'll need Go installed.
First of all, you need to install bookprint
locally:
$ go install stefanco.de/bookprint/cmd/bookprint
This will install bookprint
into $GOROOT/bin
.
Then you're able to run bookprint
locally:
$ bookprint --help
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
The following technologies, tools and platforms were used during development.
- Code: Go
- CI/CD: GitHub Actions
Thank you for your message! Please fill out a bug report.
This project is licensed under the European Union Public License 1.2.