安装的node版本不能太高,node8
经过测试是可以使用的。
npm install -g gitbook
因为我们要自动生成summary.md文件。因此需要安装这个插件
npm install -g gitbook-summary
进入文档文件夹,输入
gitbook init
book sm
{
"title" : "ansible newer",
"author" : "qipaqiu",
"plugins" : [
"expandable-chapters",
"chapter-fold",
"code",
"splitter",
"-lunr",
"-search",
"search-pro",
"tbfed-pagefooter"
],
"pluginsConfig": {
"page-toc-button": {
"maxTocDepth": 2,
"minTocSize": 2
},
"theme-default": {
"showLevel": true
},
"tbfed-pagefooter": {
"copyright":"Copyright © dsx2016.com 2019",
"modify_label": "该文章修订时间:",
"modify_format": "YYYY-MM-DD HH:mm:ss"
}
}
}
gitbook install
渲染之后,才可以放置到github pages上。
gitbook build
gitbook build ./ ./docs
windows代理设置
set http_proxy=http://127.0.0.1:70
set https_proxy=https://192.168.1.1:8080
Linux代理设置
export proxy="http://127.0.0.1:70"
export http_proxy=$proxy
export https_proxy=$proxy
export ftp_proxy=$proxy
export no_proxy="localhost, 127.0.0.1, ::1"
因篇幅问题不能全部显示,请点此查看更多更全内容
Copyright © 2019- stra.cn 版权所有 赣ICP备2024042791号-4
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务