We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
app.config
1 parent 6a3afab commit 3787a7cCopy full SHA for 3787a7c
src/furo/__init__.py
@@ -283,7 +283,13 @@ def _builder_inited(app: sphinx.application.Sphinx) -> None:
283
update_known_styles_state(app)
284
285
def _update_default(key: str, *, new_default: Any) -> None:
286
- app.config.values[key] = (new_default, *app.config.values[key][1:])
+ try:
287
+ conf_py_settings = app.config._raw_config
288
+ except AttributeError:
289
+ pass # Sphinx's config has changed.
290
+ else:
291
+ if key not in conf_py_settings:
292
+ app.config._raw_config.setdefault(key, new_default)
293
294
# Change the default permalinks icon
295
_update_default("html_permalinks_icon", new_default="#")
0 commit comments