【发布时间】:2016-07-14 03:10:56
【问题描述】:
Sphinx 在构建文档时会生成一个名为 genindex 的索引,因此会生成一个名为 forbids to use that name for a document 的索引。现在,如何在目录中包含指向该索引的链接?
我试过了:
.. toctree::
:maxdepth: 2
genindex
api
Indices and tables
==================
* :ref:`genindex`
虽然最后一行确实在文档中创建了指向该索引的链接,但构建在创建 TOC 时并不知道引用:
WARNING: toctree contains reference to nonexisting document 'genindex'
【问题讨论】:
-
你能解释一下方程式吗:
4 years, 2 months > 4 years, 9 months@Paebbles?
标签: python-sphinx toctree