Skip to content

Commit

Permalink
Move methods into class pages for docs (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucasau authored Oct 13, 2023
1 parent d6cb5fc commit cddfbbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions docs/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@

.. rubric:: Attributes

.. autosummary::
:toctree: ../stubs/
{% for item in all_attributes %}
{%- if not item.startswith('_') %}
~{{ name }}.{{ item }}
.. autoattribute:: {{ name }}.{{ item }}
{%- endif -%}
{%- endfor %}
{% endif %}
Expand All @@ -33,11 +31,9 @@

.. rubric:: Methods

.. autosummary::
:toctree: ../stubs/
{% for item in all_methods %}
{%- if not item.startswith('_') %}
~{{ name }}.{{ item }}
.. automethod:: {{ name }}.{{ item }}
{%- endif -%}
{%- endfor %}

Expand Down
8 changes: 2 additions & 6 deletions docs/_templates/autosummary/class_no_inherited_members.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@

.. rubric:: Attributes

.. autosummary::
:toctree: ../stubs/
{% for item in all_attributes %}
{%- if item not in inherited_members %}
{%- if not item.startswith('_') %}
~{{ name }}.{{ item }}
.. autoattribute:: {{ name }}.{{ item }}
{%- endif -%}
{%- endif %}
{%- endfor %}
Expand All @@ -35,12 +33,10 @@

.. rubric:: Methods

.. autosummary::
:toctree: ../stubs/
{% for item in all_methods %}
{%- if item not in inherited_members %}
{%- if not item.startswith('_') %}
~{{ name }}.{{ item }}
.. automethod:: {{ name }}.{{ item }}
{%- endif -%}
{%- endif %}
{%- endfor %}
Expand Down

0 comments on commit cddfbbb

Please sign in to comment.