【发布时间】:2017-01-31 21:20:29
【问题描述】:
我正在 Sphinx 中制作一系列设计文档,我想将它们一起包含在 toctree 中,并对文档中的部分进行编号。我知道我可以使用.. 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
有没有办法让标题显示在目录中以及最终不是编号部分的子页面的顶部?
【问题讨论】:
标签: python-sphinx sections toctree