Skip to content

Commit

Permalink
docs: clean up autodoc pages and refs (#382)
Browse files Browse the repository at this point in the history
Noticed some small stuff while reviewing the previous PR

* fix autodoc to include inherited members
* fix refs to autodoc API pages
  • Loading branch information
jsstevenson authored Dec 24, 2024
1 parent 1ee3408 commit 251f3e7
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 12 deletions.
7 changes: 7 additions & 0 deletions docs/source/_templates/module_summary_inherited.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{ fullname | underline }}

.. automodule:: {{ fullname }}
:members:
:undoc-members:
:special-members: __init__
:inherited-members:
2 changes: 1 addition & 1 deletion docs/source/managing_data/dynamodb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The Gene Normalizer can store and retrieve gene records from a `local DynamoDB <

.. note::

See the :ref:`DynamoDB handler API reference<dynamodb_api>` for information on programmatic access.
See the :py:mod:`DynamoDB handler API reference<gene.database.dynamodb>` for information on programmatic access.

Local setup
-----------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/managing_data/postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The Gene Normalizer can store and retrieve gene records from a `PostgreSQL <http

.. note::

See the :ref:`PostgreSQL handler API reference<postgres_api>` for information on programmatic access.
See the :py:mod:`PostgreSQL handler API reference<gene.database.postgresql>` for information on programmatic access.

Local setup
--------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/reference/api/etl/gene.etl.base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:inherited-members:
2 changes: 1 addition & 1 deletion docs/source/reference/api/etl/gene.etl.ensembl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:inherited-members:
2 changes: 1 addition & 1 deletion docs/source/reference/api/etl/gene.etl.exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:inherited-members:
2 changes: 1 addition & 1 deletion docs/source/reference/api/etl/gene.etl.hgnc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:inherited-members:
2 changes: 1 addition & 1 deletion docs/source/reference/api/etl/gene.etl.merge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:inherited-members:
2 changes: 1 addition & 1 deletion docs/source/reference/api/etl/gene.etl.ncbi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
:members:
:undoc-members:
:special-members: __init__
:exclude-members: model_fields, model_config
:inherited-members:
4 changes: 2 additions & 2 deletions docs/source/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ Database Modules
.. _etl-api:

ETL Modules
----------
-----------

.. autosummary::
:nosignatures:
:toctree: api/etl
:template: module_summary.rst
:template: module_summary_inherited.rst

gene.etl.base
gene.etl.ensembl
Expand Down
5 changes: 3 additions & 2 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The individual endpoints are:
Internal Python API
-------------------

Each search mode can be accessed directly within Python using the :ref:`query API<query-api>`:
Each search mode can be accessed directly within Python using the :py:mod:`query API<gene.query>`:

.. code-block:: pycon
Expand Down Expand Up @@ -58,7 +58,7 @@ Users hoping for a more explicit connection declaration may instead call a datab
)
q = QueryHandler(pg_db)
See the API documentation for the :ref:`database <database_api>`, :ref:`DynamoDB <dynamodb_api>`, and :ref:`PostgreSQL <postgres_api>` modules for more details.
See the API documentation for the :py:mod:`database <gene.database.database>`, :py:mod:`DynamoDB <gene.database.dynamodb>`, and :py:mod:`PostgreSQL <gene.database.postgresql>` modules for more details.

Inputs
------
Expand All @@ -74,6 +74,7 @@ The **best match** for a search string is determined by which fields in a gene r
:members:
:undoc-members:
:show-inheritance:
:noindex:

.. note::

Expand Down

0 comments on commit 251f3e7

Please sign in to comment.