安装
npm install gitbook -g
使用
- 新建文件夹,建议用书名。如:把时间当作朋友
- 在目录下新建
README.md
和SUMMARY.md
.
README.md
是书籍的简单介绍,如:
This is a book powered by [GitBook](https://github.com/GitbookIO/gitbook).
SUMMARY.md
是书籍的目录结构,如:
* [Chapter1](chapter1/README.md)
* [Section1.1](chapter1/section1.1.md)
* [Section1.2](chapter1/section1.2.md)
* [Chapter2](chapter2/README.md)
* [Section2.1](chapter2/section2.1.md)
* [Section2.2](chapter2/section2.2.md)
- 初始化书籍:
gitbook init
- 编译预览:
gitbook serve