Skip to content

Commit

Permalink
doc: add schema to index, fix schema link reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jason810496 committed Jul 21, 2024
1 parent 6c01871 commit e537857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions doc/api-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ API Reference
:member-order: bysource
:special-members: __init__

schema.Message
--------------

.. autoclass:: pgmq_sqlalchemy.schema.Message
:members:
:undoc-members:
:inherited-members:
:exclude-members: __init__
:noindex:


schema.QueueMetrics
-------------------

.. autoclass:: pgmq_sqlalchemy.schema.QueueMetrics
:members:
:undoc-members:
:inherited-members:
:exclude-members: __init__
:noindex:

4 changes: 2 additions & 2 deletions pgmq_sqlalchemy/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@dataclass
class Message:
"""
.. _schema_message_class: `schema.Message`_
.. _schema_message_class: #pgmq_sqlalchemy.schema.Message
.. |schema_message_class| replace:: :py:class:`.~pgmq_sqlalchemy.schema.Message`
"""

Expand All @@ -20,7 +20,7 @@ class Message:
@dataclass
class QueueMetrics:
"""
.. _schema_queue_metrics_class: `schema.QueueMetrics`_
.. _schema_queue_metrics_class: #pgmq_sqlalchemy.schema.QueueMetrics
.. |schema_queue_metrics_class| replace:: :py:class:`.~pgmq_sqlalchemy.schema.QueueMetrics`
"""

Expand Down

0 comments on commit e537857

Please sign in to comment.