diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-06-27 15:02:14 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-06-27 15:02:14 +0000 |
commit | 692f3f65acd441995f893908d694b3891a67070c (patch) | |
tree | eaf7c6fe5d1b3ab13525eb7f85fd598db67cce6a /doc/sphinxext/docscrape.py | |
parent | cefd431502c6b9915611ca46cd8194b7007db0ef (diff) | |
download | numpy-692f3f65acd441995f893908d694b3891a67070c.tar.gz |
docs: generate Attributes and Methods sections in class documentation
Diffstat (limited to 'doc/sphinxext/docscrape.py')
-rw-r--r-- | doc/sphinxext/docscrape.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/sphinxext/docscrape.py b/doc/sphinxext/docscrape.py index f374b3ddc..3e190b6f2 100644 --- a/doc/sphinxext/docscrape.py +++ b/doc/sphinxext/docscrape.py @@ -8,7 +8,7 @@ import re import pydoc from StringIO import StringIO from warnings import warn -4 + class Reader(object): """A line-based string reader. @@ -386,6 +386,8 @@ class NumpyDocString(object): out += self._str_see_also(func_role) for s in ('Notes','References','Examples'): out += self._str_section(s) + for param_list in ('Attributes', 'Methods'): + out += self._str_param_list(param_list) out += self._str_index() return '\n'.join(out) |