Skip to content

Commit

Permalink
adopt latest sphinx-autoapi templates
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Oct 29, 2024
1 parent 7dc3687 commit c2c348c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/src/_autoapi_templates/python/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ℹ️
This directory contains templates copied from `sphinx-autoapi` 3.2.1, which have been customised for
This directory contains templates copied from `sphinx-autoapi` 3.3.3, which have been customised for
our own purposes.

For further details, see:
Expand Down
18 changes: 2 additions & 16 deletions docs/src/_autoapi_templates/python/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,10 @@ GeoVista

{% endif %}

{% block subpackages %}
{% set visible_subpackages = obj.subpackages|selectattr("display")|list %}
{% if visible_subpackages %}
Subpackages
-----------

.. toctree::
:maxdepth: 1

{% for subpackage in visible_subpackages %}
{{ subpackage.include_path }}
{% endfor %}


{% endif %}
{% endblock %}
{% block submodules %}
{% set visible_subpackages = obj.subpackages|selectattr("display")|list %}
{% set visible_submodules = obj.submodules|selectattr("display")|list %}
{% set visible_submodules = (visible_subpackages + visible_submodules)|sort %}
{% if visible_submodules %}
Submodules
----------
Expand Down

0 comments on commit c2c348c

Please sign in to comment.