如果我需要支持“常规”散文文档和30多个模块的API文档,则如何最好地构建Sphinx文档(用于Read the Docs)?其中有一些(<10)常规散文文档页面,例如“入门”,“构建代码”,“常见问题解答”,“支持”等。我知道如何处理这些。另一方面,我的项目包含30多个模块,其中API文档不能从代码(非Python)中提取,而必须手动编写。每个模块都有n个函数,并且每个函数都必须使用相同的结构进行记录。我想每个模块都有一个.rst文件。因此,我希望拥有的目录结构如下:
在Read the Docs侧边导航(即目录)中,我希望看到以下表示方式:
docs
├── building.rst
├── faq.rst
├── ...
├── index.rst
└── modules
├── node.rst
├── ...
在Read the Docs侧边导航(即目录)中,我希望看到以下表示方式:
+ Building (header 1)
- chapter 1 (header 2)
- ...
+ FAQ
- question 1
- ...
+ Modules
+ node (header 1 from `modules/node.rst`)
- node.foo()
- node.bar()
+ ...
是否可以通过在modules
目录中放置另一个index.rst
来实现这一点?