Skip to content

Commit

Permalink
fix: replicated template (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliesch authored Mar 26, 2024
1 parent c5d1a55 commit 1100521
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 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,8 +19,7 @@
.. rubric:: {{ _('Functions') }}

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

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

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

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

.. autosummary::
:toctree:
:template: custom-module-template.rst
:template: custom-module-template.rst
:recursive:
{% for item in modules %}
{{ item }}
Expand Down

0 comments on commit 1100521

Please sign in to comment.