diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-03-24 22:24:01 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-03-24 22:24:01 +0000 |
commit | 940a7d3b4e6398a742873347a2f3c605ceffe481 (patch) | |
tree | a45273e183e85a5e1998cf7c059110596a8192bf | |
parent | b21d2455c755a552d0d9f6f31897e090aa06d9ca (diff) | |
download | numpy-940a7d3b4e6398a742873347a2f3c605ceffe481.tar.gz |
sphinxext: autosummary: allow trailing explanations in autosummary items
-rwxr-xr-x | doc/sphinxext/autosummary_generate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/sphinxext/autosummary_generate.py b/doc/sphinxext/autosummary_generate.py index 2c6509760..a32706748 100755 --- a/doc/sphinxext/autosummary_generate.py +++ b/doc/sphinxext/autosummary_generate.py @@ -149,7 +149,7 @@ def get_documented_in_lines(lines, module=None, filename=None): autodoc_re = re.compile(".. auto(function|method|attribute|class|exception|module)::\s*([A-Za-z0-9_.]+)\s*$") autosummary_re = re.compile(r'^\.\.\s+autosummary::\s*') module_re = re.compile(r'^\.\.\s+(current)?module::\s*([a-zA-Z0-9_.]+)\s*$') - autosummary_item_re = re.compile(r'^\s+([_a-zA-Z][a-zA-Z0-9_.]*)\s*') + autosummary_item_re = re.compile(r'^\s+([_a-zA-Z][a-zA-Z0-9_.]*)\s*.*?') toctree_arg_re = re.compile(r'^\s+:toctree:\s*(.*?)\s*$') documented = {} |