-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Labels
type:bugSomething isn't workingSomething isn't working
Description
Current Behavior
When using sphinx-multiversion with Sphinx >= 9.0, documentation builds fail with a TypeError related to Config.read().
This appears to be caused by a breaking change in Sphinx's internal config loading API, which sphinx-multiversion relies on.
The build fails with the following error:
TypeError: Config.read() takes 2 positional arguments but 3 were givenFull traceback (excerpt):
File "../site-packages/sphinx_multiversion/main.py", line 182, in main
config = load_sphinx_config(
^^^^^^^^^^^^^^^^^^^
File "../site-packages/sphinx_multiversion/main.py", line 88, in load_sphinx_config
raise result
TypeError: Config.read() takes 2 positional arguments but 3 were givenExpected Behavior
Reproduction Steps
- Install dependencies:
pip install sphinx>=9 sphinx-multiversion - Run sphinx-multiversion:
sphinx-multiversion docs/source docs/build
- See error
TypeError: Config.read() takes 2 positional arguments but 3 were given
Environment
- OS: Windows11
- Python: 3.11, 3.12
Additional Context
Spill-Tea, bmos, ndunnewind and JeppeKlitgaard
Metadata
Metadata
Assignees
Labels
type:bugSomething isn't workingSomething isn't working
Type
Projects
Status
Backlog