Python 更改Sphinx中的内部链接标签
我正在使用生成文档。我可以使用更改目录中文档链接的标签Python 更改Sphinx中的内部链接标签,python,hyperlink,python-sphinx,sections,toctree,Python,Hyperlink,Python Sphinx,Sections,Toctree,我正在使用生成文档。我可以使用更改目录中文档链接的标签 Features </resources/pages/features> 功能 在目录树指令中,按照,但如何对文档中的节链接执行相同操作 编辑: 这就是我想要实现的目标: rst博士 .. toctree:: :maxdepth: 2 Section - Information <info> .. _info: Info Section ------------ 。。目录树:: :maxd
Features </resources/pages/features>
功能
在目录树指令中,按照,但如何对文档中的节链接执行相同操作
编辑:
这就是我想要实现的目标:
rst博士
.. toctree::
:maxdepth: 2
Section - Information <info>
.. _info:
Info Section
------------
。。目录树::
:maxdepth:2
第节-信息
.. _信息:
信息部分
------------
因此,
Section-information
将出现在目录中,而Info Section
将出现在文档本身中我相信您可以使用标准的reST标签
例如:
pages/features.rst:
.. _label1:
A section
---------
Some text
otherpage.rst:
See :ref:`label1`
.但是,我如何在文档的toctree指令中做到这一点?不确定使用toctree是否可以实现您想要的。也许您应该手动创建目录?