GitBook tutorial

运行

gitbook --port 4001 --lrport 35730 serve

再访问

http://127.0.0.1:4001/

教程 http://www.chengweiyang.cn/gitbook/basic-usage/README.html

安装

macos:

brew update

brew install node

npm install gitbook-cli -g

使用

1. gitbook init 生成文件

README.md
SUMMARY.md

2. 修改summary用来定义目录

修改完summary之后

会重新生成目录树,和对应的md文件

3. 运行服务器

4. 多端口

https://huataihuang.gitbooks.io/cloud-atlas/develop/doc/gitbook/run_multi_gitbook_in_one_host.html

运行

再访问

http://127.0.0.1:4001/

5. win10不能热加载

https://www.jianshu.com/p/7b107dfb7522 拖到最后

即启动服务后立即删除 _book 目录

Last updated

Was this helpful?