Skip to content

Commit

Permalink
chore: re-enable sphinx-toolbox
Browse files Browse the repository at this point in the history
Upstream workflow has been bumped to use Python 3.10, so we can remove
our bespoke initialisation of "every sphinx-toolbox extension except
autonamedtuple".
  • Loading branch information
tigarmo committed Nov 2, 2023
1 parent 39473bb commit bbff5f5
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions docs/custom_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,29 +131,7 @@
"sphinx_copybutton",
"sphinx-pydantic",
"sphinx.ext.autodoc",
# NOTE: we can't add sphinx_toolbox here because it enables autonamedtuple
# and that extension fails to parse future-like annotations, even if the
# file has the correct __future__ import.
# So instead, we manually enable every other extension that sphinx_toolbox
# has.
# "sphinx_toolbox",
"sphinx_toolbox.assets",
"sphinx_toolbox.changeset",
"sphinx_toolbox.code",
"sphinx_toolbox.collapse",
"sphinx_toolbox.confval",
"sphinx_toolbox.decorators",
"sphinx_toolbox.formatting",
"sphinx_toolbox.installation",
"sphinx_toolbox.issues",
"sphinx_toolbox.latex",
"sphinx_toolbox.rest_example",
"sphinx_toolbox.shields",
"sphinx_toolbox.sidebar_links",
"sphinx_toolbox.source",
"sphinx_toolbox.wikipedia",
"sphinx_toolbox.more_autodoc.autoprotocol",
"sphinx_toolbox.more_autodoc.autotypeddict",
"sphinx_toolbox",
]

# Add MyST extensions
Expand Down

0 comments on commit bbff5f5

Please sign in to comment.