Proper rendering of Sphinx substitutions in httpdomain extension

248 views Asked by At

I am using sphinxcontrib-httpdomain extension to write Sphinx documentation. This extension is able to generate a 'routing table' page which I defined like this.
I also defined a substitution which I use in my docs:

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

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

However, when I put this substitution in the synopsis directive of HTTPDomain extension, it is rendered out as plain text...

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

How can I force this page (routing table) to render out my substitutions properly?

0

There are 0 answers