Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python sphinx Sphinx reST RTD中的预格式化(逐字)超链接_Python Sphinx_Restructuredtext_Read The Docs - Fatal编程技术网

Python sphinx Sphinx reST 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

我正在使用Sphinx RTD构建文档

我想有一个链接的地方,并被设计成一个逐字或预先格式化的文本

例如,假设我有以下逐字记录:

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``