【发布时间】:2022-01-17 15:24:38
【问题描述】:
我有第一个文件,例如:
######
Title
######
.. toctree::
:hidden:
:titlesonly:
subpage1
subpage2
subpage3
Section1
---------
Section2
---------
这会导致目录树
Title
subpage1 title
subpage2 title
subpage3 title
Section1
Section2
有没有办法从目录树中删除 Section1 和 Section2 - 我想要它,只有我明确声明的内容
【问题讨论】:
-
Section1 和 Section2 不在
toctree指令中。当您呈现为 HTML 时,将呈现toctree,然后是两个部分标题。如果您不想要这些标题,请将其删除。 -
.. toctree::的缩进错误。 -
@mzjn - 谢谢。我固定了,我想
标签: python-sphinx toctree