Skip to content

Commit bbff5f5

Browse files
committed
chore: re-enable sphinx-toolbox
Upstream workflow has been bumped to use Python 3.10, so we can remove our bespoke initialisation of "every sphinx-toolbox extension except autonamedtuple".
1 parent 39473bb commit bbff5f5

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

docs/custom_conf.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -131,29 +131,7 @@
131131
"sphinx_copybutton",
132132
"sphinx-pydantic",
133133
"sphinx.ext.autodoc",
134-
# NOTE: we can't add sphinx_toolbox here because it enables autonamedtuple
135-
# and that extension fails to parse future-like annotations, even if the
136-
# file has the correct __future__ import.
137-
# So instead, we manually enable every other extension that sphinx_toolbox
138-
# has.
139-
# "sphinx_toolbox",
140-
"sphinx_toolbox.assets",
141-
"sphinx_toolbox.changeset",
142-
"sphinx_toolbox.code",
143-
"sphinx_toolbox.collapse",
144-
"sphinx_toolbox.confval",
145-
"sphinx_toolbox.decorators",
146-
"sphinx_toolbox.formatting",
147-
"sphinx_toolbox.installation",
148-
"sphinx_toolbox.issues",
149-
"sphinx_toolbox.latex",
150-
"sphinx_toolbox.rest_example",
151-
"sphinx_toolbox.shields",
152-
"sphinx_toolbox.sidebar_links",
153-
"sphinx_toolbox.source",
154-
"sphinx_toolbox.wikipedia",
155-
"sphinx_toolbox.more_autodoc.autoprotocol",
156-
"sphinx_toolbox.more_autodoc.autotypeddict",
134+
"sphinx_toolbox",
157135
]
158136

159137
# Add MyST extensions

0 commit comments

Comments
 (0)