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...
40 lines
942 B
ReStructuredText
40 lines
942 B
ReStructuredText
ItemFinished
|
|
------------
|
|
|
|
Generated when Syncthing ends synchronizing a file to a newer version. A
|
|
successful operation:
|
|
|
|
.. code-block:: json
|
|
|
|
{
|
|
"id": 93,
|
|
"type": "ItemFinished",
|
|
"time": "2014-07-13T21:22:03.414609034+02:00",
|
|
"data": {
|
|
"item": "test.txt",
|
|
"folder": "default",
|
|
"error": null,
|
|
"type": "file",
|
|
"action": "update"
|
|
}
|
|
}
|
|
|
|
An unsuccessful operation:
|
|
|
|
.. code-block:: json
|
|
|
|
{
|
|
"id": 44,
|
|
"type": "ItemFinished",
|
|
"time": "2015-05-27T11:21:05.711133004+02:00",
|
|
"data": {
|
|
"action": "update",
|
|
"error": "open /Users/jb/src/github.com/syncthing/syncthing/test/s2/foo/.syncthing.hej.tmp: permission denied",
|
|
"folder": "default",
|
|
"item": "foo/hej",
|
|
"type": "file"
|
|
}
|
|
}
|
|
|
|
The ``action`` field is either ``update`` or ``delete``.
|