add the following plugins to your book.json
and run gitbook install
{
"plugins": ["page-treeview"]
}
just find plugin on gitbook and install it on your gitbook project.
configuration option can be set as an obj like, and of course you can use a default value shown as followed:
{
"plugins": [
"page-treeview"
],
"pluginsConfig": {
"page-treeview": {
"copyright": "Copyright © aleen42",
"minHeaderCount": "2",
"minHeaderDeep": "2"
}
}
}
设置book.json
如下:
{
"plugins": [
"-lunr", "-search", "search-pro",
"back-to-top-button",
"chapter-fold",
"code",
"splitter",
"tbfed-pagefooter",
"page-treeview"
],
"pluginsConfig": {
"tbfed-pagefooter": {
"copyright": "Copyright © Aron.Li 2019",
"modify_label": "该文件修订时间:",
"modify_format": "YYYY-MM-DD HH:mm:ss"
},
"page-treeview": {
"copyright": "Copyright © aleen42",
"minHeaderCount": "2",
"minHeaderDeep": "2"
}
}
}
安装如下:
$ gitbook install