A Docker image for gitbook
This Docker image for gitbook is manage markdown files in gitbook directory.
Run the following command, to init your gitbook
$ docker run --rm -v $(pwd)/gitbook:/gitbook hero/gitbook init
Run the following command, to start gitbook server.
$ docker run -it -v $(pwd)/gitbook:/gitbook -p 4000:4000 --name my-gitbook hero/gitbook serve
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.
See HeRoMo/gitbook-template: A gitbook project template
MIT. see LICENSE