Sphinx 中的嵌套 URL
假设我在 file.rst
中有两个链接:
.. _link1: https://link1.com
.. _link2: https://link1.com/val
有没有办法在 link2
中使用 link1
,就像我下面使用自定义显示文本一样对于用户:
.. _link1: https://link1.com
.. _link2: link1/val
这就是我打算使用它的方式:
See link `here <link1_>`_ for more details check `this <link2_>`_ out.
Say I have two links in a file.rst
:
.. _link1: https://link1.com
.. _link2: https://link1.com/val
Is there a way to use link1
in link2
like what I have below with custom display text for the user:
.. _link1: https://link1.com
.. _link2: link1/val
This is how I intend to use it:
See link `here <link1_>`_ for more details check `this <link2_>`_ out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Sphinx 扩展
extlinks
。You could use the Sphinx extension
extlinks
.