我们正在使用 docs categories 插件进行课程导航,效果很好!一个很棒的补充功能是能够控制部分默认折叠和展开。
使用原始的 index 模板,类似这样的结构来控制状态会很棒:
您可以从对分类的可选简短描述开始。
## [Test external](#open)
* Google: https://google.com
## [First section](#closed)
* https://discourse.example.com/t/topic-title/12
* https://discourse.example.com/t/another-topic-title/34
* Short title: https://discourse.example.com/t/topic-with-a-long-title/56
* Another title: https://discourse.example.com/t/another-topic-with-a-long-title/78
## Second section
* Topic title: https://discourse.example.com/t/documentation-topic/98
* https://discourse.example.com/t/new-topic/76