You need to install for the followings.
- Node.js
- Yarn
- (Option)Calibre
- If you generate document as PDF format, you need
ebook-convertincludedCalibre
- If you generate document as PDF format, you need
cd gitbook
yarn global add gitbook-cli
yarn install
gitbook serve
gitbook build
gitbook pdf
You can run gitbook in Docker container.
At first, you should greate Docker image.
docker build -t comevizz-doc --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy .
docker run --rm -v $PWD/gitbook:/srv/gitbook -p 4000:4000 comevizz-doc serve
docker run --rm -v $PWD/gitbook:/srv/gitbook comevizz-doc pdf