Skip to content
Snippets Groups Projects
Commit fb83bc17 authored by bigbes's avatar bigbes
Browse files

Add custom Sphinx roles for PGulutzan

parent d795feae
No related branches found
No related tags found
No related merge requests found
......@@ -449,3 +449,17 @@ div.b-cols_content_left .b-search-text {
.b-documentation-tab div {
height: 100%;
}
.ccode, .ccodeb, .ccodei, .ccodebi {
white-space: pre;
font-size: 13px;
font-family: monospace;
}
.ccodeb, .ccodebi {
font-weight: bold;
}
.ccodei, .ccodebi {
font-style: italic;
}
......@@ -54,8 +54,29 @@ html_show_sphinx = False
html_show_copyright = False
html_use_smartypants = False
# Tarantool custom roles
# Tarantool has extended Sphinx so that there are four new roles:
# :codenormal:`text` displays text as monospace
# :codebold:`text` displays text as monospace bold
# :codeitalic:`text` displays text as monospace italic
# :codebolditalic:`text` displays text as monospace italic bold
# The effect on HTML output is defined in _static/sphinx_design.css
# (which is the css file designated in _templates/layout.html).
rst_epilog = """
.. |br| raw:: html
<br />
.. role:: codenormal
:class: ccode
.. role:: codebold
:class: ccodeb
.. role:: codeitalic
:class: ccodei
.. role:: codebolditalic
:class: ccodebi
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment