Skip to content

Commit 848f5fd

Browse files
authored
CI: Pin to sphinx>=6.2 for docs build on Python 3.13 (#3667)
Fix `ModuleNotFoundError: No module named 'imghdr'` on Python 3.13. Xref sphinx-doc/sphinx#10440 (comment) * Set needs_sphinx to 6.2
1 parent 7845e9e commit 848f5fd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.github/workflows/ci_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
python-build
112112
myst-nb
113113
panel
114-
sphinx
114+
sphinx>=6.2
115115
sphinx-autodoc-typehints
116116
sphinx-copybutton
117117
sphinx-design

ci/requirements/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies:
2626
# Dev dependencies (building documentation)
2727
- myst-nb
2828
- panel
29-
- sphinx
29+
- sphinx>=6.2
3030
- sphinx-autodoc-typehints
3131
- sphinx-copybutton
3232
- sphinx-design

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
]
172172

173173
source_suffix = ".rst"
174-
needs_sphinx = "1.8"
174+
needs_sphinx = "6.2"
175175
# Encoding of source files
176176
source_encoding = "utf-8-sig"
177177
root_doc = "index"

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies:
3737
# Dev dependencies (building documentation)
3838
- myst-nb
3939
- panel
40-
- sphinx
40+
- sphinx>=6.2
4141
- sphinx-autodoc-typehints
4242
- sphinx-copybutton
4343
- sphinx-design

0 commit comments

Comments
 (0)