如何在 Sphinx 文档中创建内部超链接? 我正在使用:
:role:`target`
但它不起作用。
最佳答案
交叉引用是使用 ref
:ref:`label-name`
您可以使用以下方式提供标签:
.. _label-name:
见:https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-ref
角色用于创建自定义解释文本。见:http://docutils.sourceforge.net/docs/ref/rst/directives.html#role
关于python - 如何在 Sphinx 文档中创建内部超链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4385315/