GitBook插件¶
在根目录下创建一个book.json 的配置文件,就可以为你的gitbook 添加一下插件了,可以配置主题、样式和一些格式插件等。
基础 book.json¶
{
"plugins": [
"tbfed-pagefooter",
"github",
"chapter-fold",
"expandable-chapters-small",
"splitter",
"-search",
"copy-code-button",
"back-to-top-button",
"search-pro"
],
"pluginsConfig": {
"github": {
"url": "https://github.com/username"
},
"tbfed-pagefooter": {
"copyright":"版权所有,盗版必究",
"modify_label": "Last Modified On:",
"modify_format": "YYYY-MM-DD HH:mm:ss"
}
}
}
添加了这些插件后要执行安装命令,这样才安装插件成功。