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 -gFetch GitBook’s latest stable version
gitbook fetch latestPreview your project:
gitbook serveAdd content
Generate the website:
gitbook build(optional)Push your changes to the master branch:
git push
CLI#
gitbook --help
gitbook ls列出本地安装版本语法格式:
gitbook lsgitbook current列出当前使用版本语法格式:
gitbook currentgitbook ls-remote列出远程可用版本语法格式:
gitbook ls-remotegitbook 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)