如何在 Sphinx 文档中创建内部超链接
如何在Sphinx文档中创建内部超链接? 我正在使用:
:role:`target`
但它不起作用。
How to make an internal hyperlink in Sphinx documentation?
I am using:
:role:`target`
But it is not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
交叉引用是使用
ref
完成的。您可以使用以下方式提供标签:
请参阅:https://www.sphinx-doc.org/en/master/usage/restructedtext/roles.html#role-ref
角色用于创建自定义解释文本。请参阅:http://docutils.sourceforge.net/docs/ref/rst /directives.html#role
Cross-referencing is done using a
ref
You can provide your labels using:
See: https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-ref
Roles are used to create custom interpreted text. See: http://docutils.sourceforge.net/docs/ref/rst/directives.html#role
在某处标题是,
参考上面的标题(可能不是同一个文件)
In somewhere the heading is,
Ref to above header (may not the same file)