相关疑难解决方法(0)

Sphinx代码块中的替换

在这个reST示例意味着由Sphinx呈现,| yaco_url | 不会被替换,因为它在代码块中:

.. |yaco_url| replace:: http://yaco.es/

You can use wget to download it:

.. code-block:: console

    $ wget |yaco_url|package.tar.gz
Run Code Online (Sandbox Code Playgroud)

我想知道是否有某种方法可以强制更换| yaco_url | 在渲染代码块之前.

python restructuredtext python-sphinx

30
推荐指数
2
解决办法
3732
查看次数

标签 统计

python ×1

python-sphinx ×1

restructuredtext ×1