生成静态HTML

CentOS下安装gitbook-cli


安装npm

从Node.js官网(https://nodejs.org/)下载Node.js源代码

解压,执行以下命令:

./configure
make
make install

安装gitbook-cli

npm install -g gitbook-cli

生成静态HTML


下载git工程

git clone https://git.gitbook.com/hvvs/pontus.git

需要输入账户密码,参见第2章节

Gitbook Build

生成静态HTML相关文件,cd到git工程目录,执行以下命令:

gitbook init
gitbook build

执行成功后,将会生成_book文件夹,里面就包括静态HTML相关的所有文件(html、css等)

results matching ""

    No results matching ""