Skip to content

Commit

Permalink
docs: add api reference pages for all modules (#344)
Browse files Browse the repository at this point in the history
Fixes #343
  • Loading branch information
afuetterer authored Apr 25, 2024
1 parent 1f7a9ee commit 8578031
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 36 deletions.
17 changes: 13 additions & 4 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,21 @@ repo_name: afuetterer/oaipmh-scythe
repo_url: https://github.com/afuetterer/oaipmh-scythe
docs_dir: src
edit_uri: edit/main/docs/
watch:
- ../src

nav:
- Home: index.md
- Tutorial: tutorial.md
- OAI-PMH Primer: oaipmh.md
- Harvesting other Metadata Formats than OAI-DC: customizing.md
- API:
- The Scythe Client: api/client.md
- Working with OAI Responses: api/response.md
- Iterating over OAI Items: api/iterator.md
- Classes for OAI Items: api/models.md
- Client: api/client.md
- Iterator: api/iterator.md
- Models: api/models.md
- Response: api/response.md
- Utils: api/utils.md
- Exceptions: api/exceptions.md
- Meta:
- Contributor Guide: contributing.md
- Changelog: changelog.md
Expand Down Expand Up @@ -51,6 +55,11 @@ plugins:
default_handler: python
handlers:
python:
paths:
- ../src
options:
show_root_heading: false
show_root_toc_entry: false
import:
- https://docs.python.org/3/objects.inv

Expand Down
4 changes: 1 addition & 3 deletions docs/src/api/client.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
::: oaipmh_scythe.client.Scythe
options:
show_root_heading: true
::: oaipmh_scythe.client
1 change: 1 addition & 0 deletions docs/src/api/exceptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: oaipmh_scythe.exceptions
8 changes: 1 addition & 7 deletions docs/src/api/iterator.md
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
::: oaipmh_scythe.iterator.OAIItemIterator
options:
show_root_heading: true

::: oaipmh_scythe.iterator.OAIResponseIterator
options:
show_root_heading: true
::: oaipmh_scythe.iterator
20 changes: 1 addition & 19 deletions docs/src/api/models.md
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
::: oaipmh_scythe.models.Identify
options:
show_root_heading: true

::: oaipmh_scythe.models.Record
options:
show_root_heading: true

::: oaipmh_scythe.models.Header
options:
show_root_heading: true

::: oaipmh_scythe.models.Set
options:
show_root_heading: true

::: oaipmh_scythe.models.MetadataFormat
options:
show_root_heading: true
::: oaipmh_scythe.models
4 changes: 1 addition & 3 deletions docs/src/api/response.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
::: oaipmh_scythe.response.OAIResponse
options:
show_root_heading: true
::: oaipmh_scythe.response
1 change: 1 addition & 0 deletions docs/src/api/utils.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
::: oaipmh_scythe.utils

0 comments on commit 8578031

Please sign in to comment.