Skip to content

Commit 80c0709

Browse files
authored
Improve autodoc templates. (#78)
1 parent 3c7ba65 commit 80c0709

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/_templates/class.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
.. currentmodule:: {{ module }}
55

66
.. autoclass:: {{ objname }}
7-
7+
:members:
8+
:inherited-members:
9+
:show-inheritance:
810
{% block methods %}
9-
.. automethod:: __init__
1011
{% endblock %}
1112

12-
.. include:: {{module}}.{{objname}}.examples
13+
.. include:: {{fullname}}.examples
1314

1415
.. raw:: html
1516

docs/_templates/function.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
.. autofunction:: {{ objname }}
77

8-
.. include:: {{module}}.{{objname}}.examples
8+
.. include:: {{fullname}}.{{item}}examples
99

1010
.. raw:: html
1111

12-
<div class="clearer"></div>
12+
<div class='clearer'></div>

0 commit comments

Comments
 (0)