gitbook:生成目录

问题:

gitbook不支持markdownTOC命令自动生成目录。

解决方案:

使用gitbook插件gitbook-plugin-toc
book.json中添加

{
    "plugins": ["toc"]
}

book.json所在目录运行gitbook install,安装完成后,在使用TOC命令的地方使用<!-- toc -->代替。即可自动生成文档目录。

posted @ 2019-07-16 22:19  luoheng  阅读(5075)  评论(1编辑  收藏  举报