我想链接到 Sphinx 文档中的某个 URL:
<a href="http://some.url">blah</a>
我在文档中发现了类似的内容:http://sphinx-doc.org/ext/extlinks.html http://sphinx-doc.org/ext/extlinks.html- 但按照惯例,它而是用链接替换自定义语法。相反,我只想生成一个指向外部网络资源的链接。
See the 重构文本文档 https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#hyperlink-references。可以通过命名引用来完成:
Test hyperlink: SO_.
.. _SO: https://stackoverflow.com/
Or with:
Test hyperlink: `Stack Overflow home <SO>`_.
.. _SO: https://stackoverflow.com/
或者使用嵌入的 URI:
Test hyperlink: `Stack Overflow home <https://stackoverflow.com/>`_.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)