npm install -g gitbook-cli
gitbook -V
gitbook init # 初始化文件目录
gitbook serve # 生成静态网页,并打开本地服务器localhost:4000
gitbook build # 生成静态网页,并存入_book文件夹
gitbook --help # 显示与gitbook相关的指令
{
"plugins": ["toggle-chapters"]
}
{
"title" : "Notes",
"author": "litreily",
"description": "Log importants things of my work and my life",
"links" : {
"sidebar" : {
"Home" : "http://www.litreily.top",
"smslit's notes": "https://www.smslit.top/notebook/"
}
},
"styles": {
"website": "styles/website.css"
},
"plugins": [
"toggle-chapters",
"etoc",
"github"
],
"pluginsConfig": {
"etoc": {
"h2lb": 3,
"mindepth": 2,
"maxdepth": 4,
"notoc": false
},
"github": {
"url": "https://github.com/Litreily/Notes"
}
}
}