【发布时间】:2014-06-11 16:57:37
【问题描述】:
我在 Sphinx 中有一个非常基本的设置。目录如下:
.. toctree::
:maxdepth: 3
one
two
文件一和二是这样的:
一个.rst
####
Part
####
*******
Chapter
*******
Section
=======
两个.rst:
***************
Another Chapter
***************
Another Section
===============
两个文件的格式相同,我希望得到以下结构
Part
|- Chapter
|- Section
|- Another Chapter
|- Another Section
然而,斯芬克斯给了我
Part
|- Chapter
|- Section
Another Chapter
|- Another Section
我拆分文件的原因是它们相当大,我想保持它们很小,以便我可以轻松地编辑它们。如何在不同的文件中获得相同的标题样式(具有相同的上划线/下划线字符)?
【问题讨论】:
标签: include python-sphinx restructuredtext sections toctree