Gitbook Boilerplate
Online Demo
Global Installation
Installation is done using the
npm install
command:
npm install -g gitbook-cli
gitbook install
Run Gitbook
View
Using dev
to run local http://192.168.0.100:8080
npm run dev
If you want to watch files, please remove the folder _book
after running the script dev
.
Image
You can put images to imgur, please install vscode-imgur.
Add your imgur key to
.vscode
/settings.json
Hotkey
Ctrl
+Alt
+V
Build To HTML
Using build
to compile the files into docs
.
npm run build
Convert To PDF
Using pdf
to export the PDF format.
npm run pdf
If your OS is Windows, please download Calibre.
Use Disqus
Input your shortname into book.json
,
then you can use the disqus plugin.