Skip to content

Commit b001db0

Browse files
committed
Use autoclass :members: option for automatic member documentation
1 parent b2d165f commit b001db0

File tree

3 files changed

+9
-48
lines changed

3 files changed

+9
-48
lines changed

cuda_core/docs/source/_templates/autosummary/class.rst

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
.. currentmodule:: {{ module }}
77

88
.. autoclass:: {{ objname }}
9-
10-
{% block methods %}
11-
{% if methods %}
12-
{% for item in methods %}
13-
.. automethod:: {{ item }}
14-
{%- endfor %}
15-
{% endif %}
16-
{% endblock %}
17-
18-
{% block attributes %}
19-
{% if attributes %}
20-
{% for item in attributes %}
21-
.. autoproperty:: {{ item }}
22-
{%- endfor %}
23-
{% endif %}
24-
{% endblock %}
9+
:members:
10+
:undoc-members:
11+
:show-inheritance:

cuda_core/docs/source/_templates/autosummary/cyclass.rst

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
.. currentmodule:: {{ module }}
77

88
.. autoclass:: {{ objname }}
9-
10-
{% block methods %}
11-
{% if methods %}
12-
{% for item in methods %}
13-
.. automethod:: {{ item }}
14-
{%- endfor %}
15-
{% endif %}
16-
{% endblock %}
17-
18-
{% block attributes %}
19-
{% if attributes %}
20-
{% for item in attributes %}
21-
.. autoattribute:: {{ item }}
22-
{%- endfor %}
23-
{% endif %}
24-
{% endblock %}
9+
:members:
10+
:undoc-members:
11+
:show-inheritance:

cuda_core/docs/source/_templates/autosummary/protocol.rst

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
.. currentmodule:: {{ module }}
77

88
.. autoprotocol:: {{ objname }}
9-
10-
{% block methods %}
11-
{% if methods %}
12-
{% for item in methods %}
13-
.. automethod:: {{ item }}
14-
{%- endfor %}
15-
{% endif %}
16-
{% endblock %}
17-
18-
{% block attributes %}
19-
{% if attributes %}
20-
{% for item in attributes %}
21-
.. autoproperty:: {{ item }}
22-
{%- endfor %}
23-
{% endif %}
24-
{% endblock %}
9+
:members:
10+
:undoc-members:
11+
:show-inheritance:

0 commit comments

Comments
 (0)