在httpdomain扩展中正确呈现Sphinx替换

时间:2015-06-09 10:55:47

标签: python-sphinx documentation-generation restructuredtext

我使用sphinxcontrib-httpdomain扩展名来编写Sphinx文档。此扩展程序可以生成'routing table'页面,我将其定义为this 我还定义了一个我在文档中使用的替换:

# conf.py
rst_epilog = """
.. |mongodb_icon| raw:: html

   <span class="icon-dbs-mongodb"></span>
"""

但是,当我将此替换放在HTTPDomain扩展的synopsis指令中时,它将以纯文本形式呈现...

.. http:post:: /companies/
   :synopsis: Some text whatever |mongodb_icon|

如何强制此页面(路由表)正确渲染我的替换?

0 个答案:

没有答案