Skip to content

Commit

Permalink
docs: rename "helpers" to "supporting classes"
Browse files Browse the repository at this point in the history
Also add a summary to the page -- unfortunately getting a standard
TOC would require creating a rst page for each class.

Signed-off-by: Jussi Kukkonen <[email protected]>
  • Loading branch information
Jussi Kukkonen committed Sep 23, 2021
1 parent 892aa04 commit a77c083
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 16 deletions.
14 changes: 0 additions & 14 deletions docs/api/tuf.api.metadata.helpers.rst

This file was deleted.

27 changes: 27 additions & 0 deletions docs/api/tuf.api.metadata.supporting.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Supporting classes
---------------------------------

The Metadata API includes multiple classes that are used by the top-level
ones (Root, Timestamp, Snapshot, Targets):

.. autosummary::
:nosignatures:

tuf.api.metadata.DelegatedRole
tuf.api.metadata.Delegations
tuf.api.metadata.Key
tuf.api.metadata.MetaFile
tuf.api.metadata.Role
tuf.api.metadata.TargetFile

.. autoclass:: tuf.api.metadata.DelegatedRole

.. autoclass:: tuf.api.metadata.Delegations

.. autoclass:: tuf.api.metadata.Key

.. autoclass:: tuf.api.metadata.MetaFile

.. autoclass:: tuf.api.metadata.Role

.. autoclass:: tuf.api.metadata.TargetFile
2 changes: 1 addition & 1 deletion docs/api/tuf.api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Metadata API
.. toctree::
:hidden:

tuf.api.metadata.helpers
tuf.api.metadata.supporting
tuf.api.serialization

.. automodule:: tuf.api.metadata
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.napoleon']
extensions = ['sphinx.ext.napoleon', 'sphinx.ext.autosummary']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down

0 comments on commit a77c083

Please sign in to comment.