Skip to content

Commit

Permalink
fix: minor template edits
Browse files Browse the repository at this point in the history
  • Loading branch information
elliesch authored Mar 25, 2024
1 parent add07c7 commit e192007
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/source/custom-module-template.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}

{% block attributes %}
{% if attributes %}
.. rubric:: Module Attributes
.. rubric:: Module attributes

.. autosummary::
:toctree:
:toctree:
{% for item in attributes %}
{{ item }}
{%- endfor %}
Expand All @@ -19,7 +19,8 @@
.. rubric:: {{ _('Functions') }}

.. autosummary::
:toctree:
:toctree:
:nosignatures:
{% for item in functions %}
{{ item }}
{%- endfor %}
Expand All @@ -31,8 +32,9 @@
.. rubric:: {{ _('Classes') }}

.. autosummary::
:toctree:
:template: custom-class-template.rst
:toctree:
:template: custom-class-template.rst
:nosignatures:
{% for item in classes %}
{{ item }}
{%- endfor %}
Expand All @@ -44,7 +46,7 @@
.. rubric:: {{ _('Exceptions') }}

.. autosummary::
:toctree:
:toctree:
{% for item in exceptions %}
{{ item }}
{%- endfor %}
Expand All @@ -53,14 +55,12 @@

{% block modules %}
{% if modules %}
.. rubric:: Modules

.. autosummary::
:toctree:
:template: custom-module-template.rst
:template: custom-module-template.rst
:recursive:
{% for item in modules %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
{% endblock %}

0 comments on commit e192007

Please sign in to comment.