Skip to content

Commit 976cf82

Browse files
committed
class template: indent everything below autoclass
this is necessary to make it pick up cross-references within the current class, e.g. :attr:`n_obs`.
1 parent a765df6 commit 976cf82

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

  • {{cookiecutter.project_name}}/docs/_templates/autosummary

{{cookiecutter.project_name}}/docs/_templates/autosummary/class.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,44 @@
1111
{% block attributes %}
1212
{% for item in attributes %}
1313
{% if loop.first %}
14-
Attributes table
15-
~~~~~~~~~~~~~~~~
14+
Attributes table
15+
~~~~~~~~~~~~~~~~
1616

17-
.. autosummary::
17+
.. autosummary::
1818
{% endif %}
19-
~{{ name }}.{{ item }}
19+
~{{ name }}.{{ item }}
2020
{%- endfor %}
2121
{% endblock %}
2222

2323
{% block methods %}
2424
{% for item in methods %}
2525
{% if loop.first %}
26-
Methods table
27-
~~~~~~~~~~~~~
26+
Methods table
27+
~~~~~~~~~~~~~
2828

29-
.. autosummary::
29+
.. autosummary::
3030
{% endif %}
31-
~{{ name }}.{{ item }}
31+
~{{ name }}.{{ item }}
3232
{% endfor %}
3333
{% endblock %}
3434

3535
{% block attributes_documentation %}
3636
{% for item in attributes %}
3737
{% if loop.first %}
38-
Attributes
39-
~~~~~~~~~~
38+
Attributes
39+
~~~~~~~~~~
4040

4141
{% endif %}
42-
.. autoattribute:: {{ [fullname, item] | join(".") }}
42+
.. autoattribute:: {{ [fullname, item] | join(".") }}
4343
{%- endfor %}
4444
{% endblock %}
4545

4646
{% block methods_documentation %}
4747
{% for item in methods %}
4848
{% if loop.first %}
49-
Methods
50-
~~~~~~~
49+
Methods
50+
~~~~~~~
5151
{% endif %}
52-
.. automethod:: {{ [fullname, item] | join(".") }}
52+
.. automethod:: {{ [fullname, item] | join(".") }}
5353
{%- endfor %}
5454
{% endblock %}

0 commit comments

Comments
 (0)