目录折叠 chapter-fold
SUMMARY.md格式
* [tf](doc/tf.md)
* [concat](doc/tf/concat.md)
* [cond](doc/tf/cond.md)
不能是下面这种:
* [tf]()
* [concat](doc/tf/concat.md)
* [cond](doc/tf/cond.md)
* tf
* [concat](doc/tf/concat.md)
* [cond](doc/tf/cond.md)
安装插件
npm install gitbook-plugin-chapter-fold
book.json配置
{
"plugins": ["chapter-fold"]
}
目录折叠 expandable-chapters
SUMMARY.md格式
* [tf]()
* [concat](doc/tf/concat.md)
* [cond](doc/tf/cond.md)
不能写成这种:
* [tf](doc/tf.md)
* [concat](doc/tf/concat.md)
* [cond](doc/tf/cond.md)
否则需要点击箭头才能展开收缩菜单
安装插件
npm install gitbook-plugin-expandable-chapters
book.json配置
{
"plugins": [
"expandable-chapters"
]
}
上面2个折叠插件一起使用
"plugins": [
"expandable-chapters",
"chapter-fold",
]
其他插件
https://segmentfault.com/a/1190000019806829