Skip to content

Commit

Permalink
Order plot functions last (#555)
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <lukas.heumos@posteo.net>
  • Loading branch information
Zethson authored Mar 11, 2024
1 parent e6ec187 commit f525f99
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
20 changes: 17 additions & 3 deletions docs/_templates/autosummary/class.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,25 @@ Methods table
~~~~~~~~~~~~~

.. autosummary::

{% set plotting_methods = [] %}
{% set other_methods = [] %}

{% for item in methods %}
{%- if item != '__init__' %}
{%- if item.startswith('plot_') %}
{%- set _ = plotting_methods.append(item) %}
{% elif item != '__init__' %}
{%- set _ = other_methods.append(item) %}
{%- endif %}
{% endfor %}

{% for item in other_methods %}
~{{ fullname }}.{{ item }}
{%- endif -%}
{%- endfor %}
{% endfor %}

{% for item in plotting_methods %}
~{{ fullname }}.{{ item }}
{% endfor %}
{% endif %}
{% endblock %}

Expand Down
3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
HERE = Path(__file__).parent
sys.path[:0] = [str(HERE.parent), str(HERE / "extensions")]

needs_sphinx = "4.3" # Nicer param docs
needs_sphinx = "4.3"

# General information about the project.
project = "pertpy"
copyright = "2021, Lukas Heumos, Theislab"
author = "Lukas Heumos"
Expand Down

0 comments on commit f525f99

Please sign in to comment.