diff options
author | Georg Brandl <georg@python.org> | 2010-08-05 16:03:36 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-05 16:03:36 +0200 |
commit | ac9d5434eefe66b336f7cee5599f253aaea6b70f (patch) | |
tree | cecf44b0de32746807bdfe4a30cd51f6416fc255 /doc/domains.rst | |
parent | e8f2718d131e48f0ab59005fce15a5fbffd30431 (diff) | |
download | sphinx-ac9d5434eefe66b336f7cee5599f253aaea6b70f.tar.gz |
Allow breaking long signatures, continuing with backlash-escaped newlines.
Diffstat (limited to 'doc/domains.rst')
-rw-r--r-- | doc/domains.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/domains.rst b/doc/domains.rst index 6bbe1215..8cd7a0c7 100644 --- a/doc/domains.rst +++ b/doc/domains.rst @@ -52,10 +52,19 @@ flag ``:noindex:``. An example using a Python domain directive:: .. py:function:: spam(eggs) ham(eggs) - :noindex: Spam or ham the foo. +This describes the two Python functions ``spam`` and ``ham``. (Note that when +signatures become too long, you can break them if you add a backslash to lines +that are continued in the next line. Example:: + + .. py:function:: filterwarnings(action, message='', category=Warning, \ + module='', lineno=0, append=False) + :noindex: + +(This example also shows how to use the ``:noindex:`` flag.) + The domains also provide roles that link back to these object descriptions. For example, to link to one of the functions described in the example above, you could say :: |