Skip to content

Commit

Permalink
docs: Added a section that shows the submodules of each subpackage in…
Browse files Browse the repository at this point in the history
… the summary
  • Loading branch information
nfelt14 committed May 16, 2024
1 parent cf238f6 commit b63056c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Valid subsections within a version are:

Things to be included in the next release go here.

### Added

- Added a new section in the documentation of each package/subpackage that shows the submodules (files) of that package/subpackage.

### Removed

- docs: Removed the copy code button from the Python API signatures in the documentation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ Context:
{{ create_summary_table(functions) }}
{% endif %}
{% endwith %}
{% with modules = obj.modules|filter_objects(
filters=config.filters,
members_list=members_list,
inherited_members=config.inherited_members,
keep_no_docstrings=config.show_if_no_docstring)|selectattr("is_init_module", "equalto", false)|list|order_members(config.members_order, members_list)
%}
{% if modules %}
{% filter heading(heading_level, id=html_id ~ "-modules") %}Submodules{% endfilter %}
{{ create_summary_table(modules) }}
{% endif %}
{% endwith %}
{% else %}
{% if config.group_by_category %}

Expand Down

0 comments on commit b63056c

Please sign in to comment.