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...
21 lines
551 B
ReStructuredText
21 lines
551 B
ReStructuredText
GET /rest/db/ignores
|
|
====================
|
|
|
|
Takes one parameter, ``folder``, and returns the content of the
|
|
``.stignore`` as the ``ignore`` field. A second field, ``patterns``,
|
|
provides a compiled version of all included ignore patterns in the form
|
|
of regular expressions. Excluded items in the ``patterns`` field have a
|
|
nonstandard ``(?exclude)`` marker in front of the regular expression.
|
|
|
|
.. code-block:: json
|
|
|
|
{
|
|
"ignore": [
|
|
"/Backups"
|
|
],
|
|
"patterns": [
|
|
"(?i)^Backups$",
|
|
"(?i)^Backups/.*$"
|
|
]
|
|
}
|