Sphinx uses .. code-block:: directives to enable highlighting:
http://sphinx-doc.org/markup/code.html#directive-code-block
Use
for i in *.rst; do
sed -i 's/code::/code-block::/g' $i
done
to update these strings to enable proper highlighting.
Note: A have disabled the windows "bash" one, because the highlighting
is broken anyway...
16 lines
343 B
ReStructuredText
16 lines
343 B
ReStructuredText
Ping
|
|
----
|
|
|
|
The Ping event is generated automatically every 60 seconds. This means
|
|
that even in the absence of any other activity, the event polling HTTP
|
|
request will return within a minute.
|
|
|
|
.. code-block:: json
|
|
|
|
{
|
|
"id": 46,
|
|
"type": "Ping",
|
|
"time": "2014-07-13T21:13:18.502171586+02:00",
|
|
"data": null
|
|
}
|