New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_config fails with any section that is not 'theme' or 'options' #12305
Comments
Thanks for reporting. The rationale for the changes is to tighten the theme configuration interface to allow supporting We could make the below change to remove the error, but this would mask the true behaviour, as Sphinx 7.3 and newer do have a behavioural change in that these other sections are unsupported. else:
- value = _NO_DEFAULT
+ value = default Lines 105 to 130 in 630b4fb
A |
Sphinx 7.3.7 has been released with fixes. A |
Thanks for the quick fix ! |
Describe the bug
See sunpy/ablog#277
in 360c7a8 the following change was introduced:
This means that any section name that is not 'theme', or 'options' will raise. Extensions, (typically
ablog
) use section names that are not 'theme' or 'options', and call get_config with a default values, failing.https://github.com/sunpy/ablog/blob/b39f90bda1fc2bfddc373f5e5e970201914e1549/src/ablog/__init__.py#L121C14-L121C21
How to Reproduce
Build anything that use
ablog
as extension with sphinBuild pydata-sphinx-theme docs by default for example
Environment Information
Sphinx extensions
ablog
Additional context
No response
The text was updated successfully, but these errors were encountered: