Merge pull request #55 from matrix-org/markjh/codehighlighting

Turn on code highlighting for HTTP api responses
pull/977/head
Kegsay 9 years ago
commit 83ee385543

@ -0,0 +1,6 @@
pre.code .comment, code .comment { color: green }
pre.code .keyword, code .keyword { color: darkred; font-weight: bold }
pre.code .name.builtin, code .name.builtin { color: darkred; font-weight: bold }
pre.code .literal.number, code .literal.number { color: blue }
pre.code .name.tag, code .name.tag { color: darkgreen }
pre.code .literal.string, code .literal.string { color: darkblue }

@ -12,7 +12,7 @@ import sys
os.chdir(os.path.dirname(os.path.abspath(__file__)))
stylesheets = {
"stylesheet_path": ["basic.css", "nature.css"]
"stylesheet_path": ["basic.css", "nature.css", "codehighlight.css"]
}
title_style_matchers = {

@ -62,7 +62,9 @@ Response{{"s" if endpoint.example.responses|length > 1 else "" }}:
{{res["description"]}}
Example::
Example
.. code:: json
{{res["example"] | indent_block(2)}}

Loading…
Cancel
Save