Linux环境下安装
先安装node
node install -g gitbook-cli
gitbook install 安装服务
gitbook serve 启动服务
配置文件(book.json):
{
"root": "./",
"title": "岁月如歌",
"author": "Luis_",
"authorHomepage": "http://www.wswzms.top",
"description": "Luis_",
"language": "zh-hans",
"copyright": "All Rights Reserved",
"plugins": [
"theme-code@0.0.20",
"-sharing",
"-lunr",
"-search",
"search-pro",
"splitter",
"tbfed-pagefooter",
"expandable-chapters-small",
"github",
"-sharing-plus",
"code",
"-copy-code-button",
"anchor-navigation-ex",
"edit-link"
],
"pluginsConfig": {
"tbfed-pagefooter": {
"copyright":"Copyright © Luis 2019",
"modify_label": "修订时间:",
"modify_format": "YYYY-MM-DD HH:mm:ss"
},
"expandable-chapters":{},
"theme-default": {
"showLevel": false
},
"github": {
"url": "https://github.com/NightAlexLy"
},
"anchor-navigation-ex":{
"showLevel": false
},
"edit-link": {
"base": "https://github.com/NightAlexLy",
"label": ""
}
}
}
参考资料
- 插件库:https://plugins.gitbook.com
- 插件开发模板:https://github.com/GitbookIO/plugin
- 在线服务:https://legacy.gitbook.com
- 书籍库:https://legacy.gitbook.com/explore
- 配置项详解:http://www.chengweiyang.cn/gitbook/customize/book.json.html
- https://toolchain.gitbook.com
- https://docs.gitbook.com
- https://www.geekjc.com/book/58f742f57bb9aa2457c11c9a
- https://gitbook.zhangjikai.com
- https://www.jianshu.com/p/427b8bb066e6