我有一些基于Sphinx的文档用于我构建的库,我想显示除changelog之外的所有页面的扩展目录。我通过将changelog移到第二个:toctree::
找到了实现方法,但这有一些奇怪的行为。主要是,当我访问页面时,changelog会显示在不同的项目符号列表中,当我使用侧边栏导航时,我只能在每个目录树中导航(如果我单击changelog,我就不会在侧边栏上显示其他部分)。有更好的方法吗?你知道吗
我现在的情况是:
.. toctree::
:maxdepth: 5
getting_started
examples
modules
.. toctree::
:maxdepth: 1
changelog
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
目前没有回答
相关问题 更多 >
编程相关推荐