Python sphinx Sphinx reST RTD中的预格式化(逐字)超链接
我正在使用Sphinx RTD构建文档 我想有一个链接的地方,并被设计成一个逐字或预先格式化的文本 例如,假设我有以下逐字记录:Python sphinx Sphinx reST RTD中的预格式化(逐字)超链接,python-sphinx,restructuredtext,read-the-docs,Python Sphinx,Restructuredtext,Read The Docs,我正在使用Sphinx RTD构建文档 我想有一个链接的地方,并被设计成一个逐字或预先格式化的文本 例如,假设我有以下逐字记录: ALTER TABLE 有没有办法把它链接到某个地方,比如:ref:…,或者仅仅是一个标准的超链接?如果我没有弄错的话,它可以帮上忙 由于StructuredText不支持嵌套的内联标记,因此使用样式化文本创建引用的唯一方法是使用替换“replace”指令: I recommend you try |Python|_. .. |Python| replace:: P
ALTER TABLE
有没有办法把它链接到某个地方,比如:ref:…
,或者仅仅是一个标准的超链接?如果我没有弄错的话,它可以帮上忙
由于StructuredText不支持嵌套的内联标记,因此使用样式化文本创建引用的唯一方法是使用替换“replace”指令:
I recommend you try |Python|_.
.. |Python| replace:: Python, *the* best language around
.. _Python: http://www.python.org/
所以可能是这样的:
Click |altertable|_ to read details about |altertable|.
----
Blah blah blah
----
.. _altertable:
Here are the details about |altertable|: blah blah blah.
.. |altertable| replace:: ``ALTER TABLE``
如果我没弄错的话,我可以帮忙
由于StructuredText不支持嵌套的内联标记,因此使用样式化文本创建引用的唯一方法是使用替换“replace”指令:
I recommend you try |Python|_.
.. |Python| replace:: Python, *the* best language around
.. _Python: http://www.python.org/
所以可能是这样的:
Click |altertable|_ to read details about |altertable|.
----
Blah blah blah
----
.. _altertable:
Here are the details about |altertable|: blah blah blah.
.. |altertable| replace:: ``ALTER TABLE``