我正在 Sphinx 中制作一系列设计文档,我想将它们一起包含在 atoctree
中,并对文档中的部分进行编号。我知道我可以用来.. sectnum::
对子页面中的所有部分进行编号。然而,Sphinx/rst 为页面标题编号(实际上只是第一部分),目录最终看起来像:
Table of Contents
1 Design the First
2 Design the Second
每个子页面看起来像:
1 Design the First
1.1 First Section
1.2 Second Section
我想要的是我的索引页上的一个目录,它只列出了标题
Table of Contents
Design The First
Design the Second
和看起来像的子页面
Design the First
1 First Section
2 Second Section
有没有办法让标题显示在目录中以及最终不是编号部分的子页面顶部?