Commit 78e765b
Pins sphinx<9 to fix sphinx-multiversion compatibility (#5211)
## Description
Sphinx 9.0 changed `Config.read()` to use keyword-only parameters
(`overrides` and `tags`), breaking `sphinx-multiversion==0.2.4` which
passes arguments positionally. This causes the multi-version docs CI
build to fail with:
```
TypeError: Config.read() takes 2 positional arguments but 3 were given
```
The `develop` branch has `sphinx>=7.0` with no upper bound, so CI
(Python 3.12) resolves to Sphinx 9.1.0 which introduced the breaking API
change.
## Fix
Pin `sphinx>=7.0,<9` in `docs/requirements.txt` to keep Sphinx on the
8.x line until `sphinx-multiversion` is updated or replaced with a
maintained fork.
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
Co-authored-by: Kelly Guo <kellyguo11@users.noreply.github.com>
Co-authored-by: Antoine RICHARD <antoiner@nvidia.com>1 parent a62f5a1 commit 78e765b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments