gitbook
gitbook local server note:
install
- install node.js download from https://nodejs.org/en/
- install calibre if you want to convet gitbook to pdf file. https://calibre-ebook.com/download
- [Mac] add symbolic link for calibre
ln -sf /Applications/calibre.app/Contents/console.app/Contents/MacOS/* /usr/local/bin/
- [Windows] add 環境變數
- [Mac] add symbolic link for calibre
- use npm to install gitbook
npm install gitbook-cli -g
- use npm to install gitbook plugin (option)
npm install gitbook-plugin-xxx -g
create a new gitbook
mkdir my_gitbook
cd my_gitbook
gitbook init
build html output
cd my_gitbook
gitbook build
build pdf output
gitbook pdf ./my_gitbook