summaryrefslogtreecommitdiff
path: root/doc/source/_templates
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2009-06-27 15:02:14 +0000
committerPauli Virtanen <pav@iki.fi>2009-06-27 15:02:14 +0000
commit692f3f65acd441995f893908d694b3891a67070c (patch)
treeeaf7c6fe5d1b3ab13525eb7f85fd598db67cce6a /doc/source/_templates
parentcefd431502c6b9915611ca46cd8194b7007db0ef (diff)
downloadnumpy-692f3f65acd441995f893908d694b3891a67070c.tar.gz
docs: generate Attributes and Methods sections in class documentation
Diffstat (limited to 'doc/source/_templates')
-rw-r--r--doc/source/_templates/autosummary/class.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/source/_templates/autosummary/class.rst b/doc/source/_templates/autosummary/class.rst
new file mode 100644
index 000000000..15af9822e
--- /dev/null
+++ b/doc/source/_templates/autosummary/class.rst
@@ -0,0 +1,23 @@
+{% extends "!autosummary/class.rst" %}
+
+{% block methods %}
+{% if methods %}
+ .. HACK
+ .. autosummary::
+ :toctree:
+ {% for item in methods %}
+ ~{{ name }}.{{ item }}
+ {%- endfor %}
+{% endif %}
+{% endblock %}
+
+{% block attributes %}
+{% if attributes %}
+ .. HACK
+ .. autosummary::
+ :toctree:
+ {% for item in attributes %}
+ ~{{ name }}.{{ item }}
+ {%- endfor %}
+{% endif %}
+{% endblock %}