Last updated
Was this helpful?
Last updated
Was this helpful?
安装 GitBook:npm i gitbook-cli -g
初始化 GitBook 项目:gitbook init
安装 GitBook 依赖:gitbook install
打包 GitBook 项目:gitbook build
开启 GitBook 服务:gitbook serve
GitBook 命令行查看:gitbook -help
GitBook 版本查看:gitbook -V
我们在 终端 输入 gitbook serve 即可开启一个 localhost:4000 的服务,请在浏览器中输入 http://localhost:4000 即可访问服务。
生成电子书
book.json配置
基本信息、links、plugins、pluginsConfig等
book.json部分配置参考
Gitbook 的插件在 NPM 上都是以 gitbook-plugin 开头的,很容易查找的。
可以在 查找或者在 或者 上找插件。