安装gitbook
-
安装 node.js
-
安装 gitbook
-
安装 Calibre
-
终端输入:
ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin
-
制作 pdf 电子书
过程详解
- 安装 node.js
- 官网
- git clone
- 终端输入:npm -v 查看是否安装成功
- 终端输入: npm install gitbook-cli -g
- 是 cli 不是 cil
- 终端输入: gitbook -V 查看是否安装成功
- 是 -V 不是 -v
- 终端进入gitbook项目所在位置
- 终端输入:gitbook pdf .
- 有个 ”. “ //代表当前目录