Skip to content

Commit

Permalink
CI: Pin to sphinx>=6.2 for docs build on Python 3.13 (#3667)
Browse files Browse the repository at this point in the history
Fix `ModuleNotFoundError: No module named 'imghdr'` on Python 3.13. Xref sphinx-doc/sphinx#10440 (comment)

* Set needs_sphinx to 6.2
  • Loading branch information
weiji14 authored Dec 3, 2024
1 parent 7845e9e commit 848f5fd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
python-build
myst-nb
panel
sphinx
sphinx>=6.2
sphinx-autodoc-typehints
sphinx-copybutton
sphinx-design
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
# Dev dependencies (building documentation)
- myst-nb
- panel
- sphinx
- sphinx>=6.2
- sphinx-autodoc-typehints
- sphinx-copybutton
- sphinx-design
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
]

source_suffix = ".rst"
needs_sphinx = "1.8"
needs_sphinx = "6.2"
# Encoding of source files
source_encoding = "utf-8-sig"
root_doc = "index"
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies:
# Dev dependencies (building documentation)
- myst-nb
- panel
- sphinx
- sphinx>=6.2
- sphinx-autodoc-typehints
- sphinx-copybutton
- sphinx-design
Expand Down

0 comments on commit 848f5fd

Please sign in to comment.