npm install -g gitbook-cli
gitbook install
npm run gitbook:install
gitbook serve --port 8989
npm run gitbook:serve
-
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
npm install
fails for thegitbook-pdf
dependency. Here is a work-around: https://github.com/GitbookIO/gitbook-pdf/issues/23- removed
"gitbook-pdf": "^0.0.2",
as a dependency from package.json. Please manually installgitbook-pdf
until the issue can be resolved - Export PDF does not contain a
-
Install Pandoc
brew install pandoc
-
Verify version
pandoc --version
requires to be vresion 2.0 or higher. -
install pdf engine
brew install Caskroom/cask/wkhtmltopdf
. Version 0.12.4 or higher. -
Acquaint yourself with Pandoc
https://pandoc.org/MANUAL.pdf
Also see https://github.com/mszep/pandoc_resume#requirements
-
Run the following to generate the PDF using html5 output
pandoc -t html5 -s {input} -o {output} --pdf-engine=wkhtmltopdf
Replace {input} and {output} with the file names.
docker build --no-cache -t mojaloop/mojaloop-business-docs .
docker push mojaloop/mojaloop-business-docs
docker run --rm -it --name mojadoc -p 8989:8989 mojaloop/mojaloop-business-docs