Sphinx toctree编号未显示在外部链接条目上

时间:2019-02-28 12:07:42

标签: python-sphinx read-the-docs

我目前正在用Sphinx编写技术文档。

我使用带编号的toctree。在此toctree中插入外部Web链接时,呈现的条目不包含数字。

对于这个toctree:

.. toctree::
   :numbered:
   :hidden:
   :maxdepth: 2

   Administration <admin/admin.rst>
   Usage <usage/usage.rst>
   Squash TM - Squash TF Link <tm-tf-link/tm-tf.rst>
   Download <https://squash-tf.readthedocs.io/en/latest/download.html#squash-tf-execution-server>

“下载”项具有以下结果:

Toctree result

有人对我有提示吗?

1 个答案:

答案 0 :(得分:0)

这似乎是@StevePiercy提到的错误。我刚刚提交了here的错误报告。 this是一个类似的问题。但是,您可以手动设置丢失的索引。

Hello world
============

.. toctree::
   :numbered:
   :hidden:
   :maxdepth: 2

   Administration <admin/admin.rst>
   Usage <usage/usage.rst>
   Squash TM - Squash TF Link <tm-tf-link/tm-tf.rst>
   4. Download <https://squash-tf.readthedocs.io/en/latest/download.html#squash-tf-execution-server>

输出:

enter image description here