【发布时间】:2016-12-30 19:53:16
【问题描述】:
假设我有以下index.rst:
Some global topic
=====================
.. toctree::
:glob:
nested/index
Global topic introduction
------------------------
还有nested/index.rst:
Some sub-topic
==============
我希望 TOC 是这样的:
- 一些全球性话题
- 全球话题介绍
- 一些子主题
相反,我得到以下信息:
- 一些全球性话题
- 一些子主题
- 全球话题介绍
如何让本地部分先出现,链接页面在后?
【问题讨论】:
-
当然,将
toctree放在页面底部causes this to nest under the introduction... -
我已经对此进行了 PR,但它不能解决您的问题(不选择
:hidden:。如果您想改变这种情况,请在 github.com/sphinx-doc/sphinx/pull/3622 提出论点。
标签: python python-sphinx restructuredtext tableofcontents toctree