Skip to content

Commit

Permalink
api: document exceptions (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders authored Jan 30, 2024
1 parent 7b8d510 commit eb97348
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
'sphinx.ext.doctest',
'sphinx.ext.graphviz',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'sphinxcontrib.spelling',
# sphinx user community extensions
'hieroglyph',
Expand Down Expand Up @@ -130,7 +132,10 @@
nitpick_ignore = [
# This class appears in documented type-hints but is not documented in the
# Python docs so fails build.
('py:class', 're.Pattern')
('py:class', 're.Pattern'),
('py:class', 'SubFuncContext'),
('py:exc', 'ISO8601SyntaxError'),
('py:exc', 'StrftimeSyntaxError'),
]

# List of patterns, relative to source directory, that match files and
Expand Down
8 changes: 8 additions & 0 deletions src/reference/api/exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Exceptions
==========

.. automodule:: cylc.flow.exceptions
:members:

.. automodule:: cylc.flow.parsec.exceptions
:members:
2 changes: 2 additions & 0 deletions src/reference/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Cylc API


.. toctree::
:maxdepth: 2

scan
zmq
exceptions

0 comments on commit eb97348

Please sign in to comment.