Skip to content

Commit eb97348

Browse files
api: document exceptions (#680)
1 parent 7b8d510 commit eb97348

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

src/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
'sphinx.ext.doctest',
3838
'sphinx.ext.graphviz',
3939
'sphinx.ext.intersphinx',
40+
'sphinx.ext.napoleon',
41+
'sphinx.ext.viewcode',
4042
'sphinxcontrib.spelling',
4143
# sphinx user community extensions
4244
'hieroglyph',
@@ -130,7 +132,10 @@
130132
nitpick_ignore = [
131133
# This class appears in documented type-hints but is not documented in the
132134
# Python docs so fails build.
133-
('py:class', 're.Pattern')
135+
('py:class', 're.Pattern'),
136+
('py:class', 'SubFuncContext'),
137+
('py:exc', 'ISO8601SyntaxError'),
138+
('py:exc', 'StrftimeSyntaxError'),
134139
]
135140

136141
# List of patterns, relative to source directory, that match files and

src/reference/api/exceptions.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Exceptions
2+
==========
3+
4+
.. automodule:: cylc.flow.exceptions
5+
:members:
6+
7+
.. automodule:: cylc.flow.parsec.exceptions
8+
:members:

src/reference/api/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Cylc API
33

44

55
.. toctree::
6+
:maxdepth: 2
67

78
scan
89
zmq
10+
exceptions

0 commit comments

Comments
 (0)