bookprint

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: EUPL-1.2

README ΒΆ

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.

Directories ΒΆ

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL