ssogabe / gitbook-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitbook template

A Gitbook project template. This template has the following features,

  • PlamntUML support, using bitjourney/plantuml-service.
  • Ready for output PDF, EPUB and MOBI files.
  • Configured VSCode Tasks and Recommended extensions.

Dependencies

Required

Recommended

Usage

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

Initialize

Run the following command, to init your gitbook

$ curl https://codeload.github.com/HeRoMo/gitbook-template/zip/master -O
$ unzip master
$ mv gitbook-template-master your-gitbook-name
$ cd your-gitbook-name
$ docker-compose run --rm gitbook init

After init, gitbook directory will be created. If you want, modify gitbook/book.json for your gitbook.

Run local server

Run the following command, to start gitbook server.

$ docker-compose up

Open http://localhost:4000, after docker containers are started.

If you use Chrome browser with LiveReload extention, Reload automatically after modify *.md files.

Output PDF, EPUB and Mobi files

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

$ docker-compose run --rm gitbook pdf

Run the following command, output EPUB file as book.epub

$ docker-compose run --rm gitbook epub

Run the following command, output MOBI file as book.mobi

$ docker-compose run --rm gitbook mobi

Related Project

License

MIT. see LICENSE

About

License:MIT License


Languages

Language:Shell 58.8%Language:Dockerfile 41.2%