Gitbook information
To install gitbook cli
npm install -g gitbook-cli
To install gitbook runtime
gitbook install
npm run gitbook:install
To serve gitbook documentation
gitbook serve --port 8989
npm run gitbook:serve
Generate PDF
Prerequisites
Install Calibre: https://calibre-ebook.com/download
npm install svgexport -g"
Pre-requisites for node-canvas: https://github.com/Automattic/node-canvas/wiki/_pages
npm install canvas
Run
npm run gitbook:export:pdf
A file book.pdf
will be generated in the root directory
Known Issues
npm install
fails for thegitbook-pdf
dependency. Here is a work-around: https://github.com/GitbookIO/gitbook-pdf/issues/23removed
"gitbook-pdf": "^0.0.2",
as a dependency from package.json. Please manually installgitbook-pdf
until the issue can be resolvedExport PDF does not contain a
Docker
Build
docker build --no-cache -t mojaloop/documentation .
Push
docker push mojaloop/documentation
Run
docker run --rm -it --name mojadoc -p 8989:8989 mojaloop/documentation
Last updated