GitLab Pages Gitbook#
GitLab CI#
This project’s static Pages are built by GitLab CI, following the steps defined in .gitlab-ci.yml
Building locally#
To work locally with this project, you’ll have to follow the steps below:
Fork, clone or download this project
Install GitBook
npm install gitbook-cli -g
Fetch GitBook’s latest stable version
gitbook fetch latest
Preview your project:
gitbook serve
Add content
Generate the website:
gitbook build
(optional)Push your changes to the master branch:
git push
CLI#
gitbook --help
gitbook ls
列出本地安装版本语法格式:
gitbook ls
gitbook current
列出当前使用版本语法格式:
gitbook current
gitbook ls-remote
列出远程可用版本语法格式:
gitbook ls-remote
gitbook fetch
安装指定版本语法格式:
gitbook fetch [version]
gitbook alias
指定文件夹别名语法格式:
gitbook alias [folder] [version]
gitbook uninstall
卸载指定版本语法格式:
gitbook uninstall [version]
gitbook update
更新指定版本语法格式:
gitbook update [tag]
gitbook help
gitbook build
构建电子书语法格式:
gitbook build [book] [output]
gitbook serve
启动本地服务器语法格式:
gitbook serve [book] [output]
gitbook install
安装插件语法格式:
gitbook install [book]
gitbook parse
解析电子书语法格式:
gitbook parse [book]
gitbook pdf
输出 PDF 电子书语法格式:
gitbook pdf [book] [output]
gitbook epub
输出 epub 电子书语法格式:
gitbook epub [book] [output]
gitbook mobi
输出 mobi 电子书语法格式:
gitbook mobi [book] [output]
Tips#
TypeError: cb.apply is not a function#
polyfills.js
//fs.stat = statFix(fs.stat)
//fs.fstat = statFix(fs.fstat)
//fs.lstat = statFix(fs.lstat)