Skip to content

Commit

Permalink
docs: Restructure Python package docs
Browse files Browse the repository at this point in the history
- This enables "Section Navigation"
- Each module has it's own .rst file with a "main section headline",
- and is bound together by a "subindex" defined by
  index_discogs_client.rst
  • Loading branch information
Johannes Tiefenbacher committed Oct 23, 2024
1 parent 3c9737f commit 44dce6d
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 28 deletions.
4 changes: 4 additions & 0 deletions docs/source/discogs_client.client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
discogs\_client.client module
=============================

.. automodule:: discogs_client.client
5 changes: 5 additions & 0 deletions docs/source/discogs_client.exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
discogs\_client.exceptions module
=================================

.. automodule:: discogs_client.exceptions

5 changes: 5 additions & 0 deletions docs/source/discogs_client.fetchers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
discogs\_client.fetchers module
===============================

.. automodule:: discogs_client.fetchers

5 changes: 5 additions & 0 deletions docs/source/discogs_client.models.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
discogs\_client.models module
=============================

.. automodule:: discogs_client.models

27 changes: 0 additions & 27 deletions docs/source/discogs_client.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/discogs_client.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
discogs\_client.utils module
============================

.. automodule:: discogs_client.utils

2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ python3-discogs-client documentation
optional_configuration.md
contributing.md
writing_docs.md
discogs_client
index_discogs_client


Indices and tables
Expand Down
13 changes: 13 additions & 0 deletions docs/source/index_discogs_client.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
discogs_client package
======================

.. toctree::
:maxdepth: 2
:caption: Contents:

discogs_client.client
discogs_client.exceptions
discogs_client.fetchers
discogs_client.models
discogs_client.utils

0 comments on commit 44dce6d

Please sign in to comment.