gitbook本地搭建服务

1.Install with NPM
npm install gitbook-cli -g

2.Create a book
GitBook can setup a boilerplate book:
gitbook init
If you wish to create the book into a new directory, you can do so by running gitbook init ./directory
3.Preview and serve your book using:
$ gitbook serve

Or build the static website using:
$ gitbook build

4.Debugging
You can use the options --log=debug and --debug to get better error messages (with stack trace). For example:

$ gitbook build ./ --log=debug --debug

你可能感兴趣的:(gitbook本地搭建服务)