Sign inSign up

hero/gitbook

By hero

•Updated over 6 years ago

simple Docker image for gitbook

Image
0

1.3K

hero/gitbook repository overview

⁠docker-gitbook

A Docker image for gitbook

⁠Usage

This Docker image for gitbook is manage markdown files in gitbook directory.

⁠Initialize

Run the following command, to init your gitbook

$ docker run --rm -v $(pwd)/gitbook:/gitbook hero/gitbook init
⁠Serve

Run the following command, to start gitbook server.

$ docker run -it -v $(pwd)/gitbook:/gitbook -p 4000:4000 --name my-gitbook hero/gitbook serve
⁠PDF output

Run the following command, output PDF file as book.pdf

$ docker run --rm -v $(pwd)/gitbook:/gitbook hero/gitbook pdf

You can make epub and mobi file like pdf.

⁠How to use more easly way

See HeRoMo/gitbook-template: A gitbook project template⁠

⁠License

MIT. see LICENSE⁠

Tag summary

Content type

Image

Digest

Size

356 MB

Last updated

over 7 years ago

docker pull hero/gitbook