步骤一
cnpm i gitbook-cli -g
步骤二、check gitbook is installed or not? Note that V is uppercase
gitbook -V
error
安装时遇到的问题一:
cb.apply(this, arguments)
https://blog.youkuaiyun.com/lcr_happy/article/details/121137649
解决方案:
然后继续执行gitbook -V
这个过程花的时间比较久
安装时遇到的问题二:
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise
https://blog.youkuaiyun.com/qq_33641175/article/details/122508473
步骤三
- 修改Summary.md文件,根据自己要创建的文件部分
- 利用Tap键来创建树形结构
- 一旦写文档,通过下面两个命令来生成文件结构,并将生成的网页生成_book目录下面
gitbook init
gitbook build
- 最后,如果想本地预览,就运行下面命令来执行:
gitbook serve