Skip to content

Commit

Permalink
fix: typo in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Feb 20, 2025
1 parent cb5068c commit ef492dc
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@

{# ----------------- Start macros definition for autosummary -----------------#}

{% macro autosummary_section(title, members, member_name) -%}
{% macro autosummary_section(title, members) -%}

{{ title }}
{{ "-" * title | length }}

.. autoapisummary::

{% for member_name in members %}
{{ member_name.id }}
{% for member in members %}
{{ member.id }}
{% endfor %}

{%- endmacro %}
Expand Down Expand Up @@ -187,23 +187,23 @@ Import detail
{% set visible_attributes = own_page_children|selectattr("type", "equalto", "attribute")|list %}

{% if visible_attributes %}
{{ autosummary_section("Attributes", visible_attributes, "attribute") }}
{{ autosummary_section("Attributes", visible_attributes) }}
{% endif %}
{% set visible_exceptions = own_page_children|selectattr("type", "equalto", "exception")|list %}

{% if visible_exceptions %}
{{ autosummary_section("Exceptions", visible_exceptions, "exception") }}
{{ autosummary_section("Exceptions", visible_exceptions) }}
{% endif %}
{% set visible_classes = own_page_children|selectattr("type", "equalto", "class")|list %}

{% if visible_classes %}
{{ autosummary_section("Classes", visible_classes, "klass") }}
{{ autosummary_section("Classes", visible_classes) }}

{% endif %}
{% set visible_methods = own_page_children|selectattr("type", "equalto", "method")|list %}

{% if visible_methods %}
{{ autosummary_section("Methods", visible_methods, "method") }}
{{ autosummary_section("Methods", visible_methods) }}
{% endif %}
{% endif %}

Expand Down

0 comments on commit ef492dc

Please sign in to comment.