How to make an internal hyperlink in Sphinx documentation(如何在Sphinx文档中创建内部超链接)
问题描述
如何在Sphinx文档中创建内部超链接? 我正在使用:但它不起作用。
推荐答案
交叉引用使用ref
您可以使用以下内容提供标签:
参见:https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-ref
角色用于创建自定义解释文本。请参阅:http://docutils.sourceforge.net/docs/ref/rst/directives.html#role
这篇关于如何在Sphinx文档中创建内部超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!