Hi Boris,
I'd like to introduce other two methods.
1. rst_prolog setting in conf.py::
rst_prolog = """
.. role:: raw-html(raw)
:format: html
"""
.. seealso::
http://sphinx-doc.org/config.html#confval-rst_prolog
2. call app.add_role() in conf.py::
## append these code to conf.py
from docutils.parsers.rst.roles import code_role
def raw_html_role(role, rawtext, text, lineno, inliner,
options={}, content=[]):
options['format'] = ['html']
return code_role(
role, rawtext, text, lineno, inliner,
options=options, content=content)
def setup(app):
app.add_role('raw-html', raw_html_role)
.. seealso::
http://sphinx-doc.org/ext/appapi.html#sphinx.application.Sphinx.add_role
Best regards,
--
Takayuki SHIMIZUKAWA
http://about.me/shimizukawa
2012/11/13 Martin Bless <
martin...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To post to this group, send email to
sphinx...@googlegroups.com.
> To unsubscribe from this group, send email to
sphinx-users...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sphinx-users?hl=en.
>
>