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.
conf.py
1 parent 0f451d7 commit e0b2afbCopy full SHA for e0b2afb
src/compwa_policy/check_dev_files/readthedocs.py
@@ -62,8 +62,8 @@ def _set_sphinx_configuration(config: ReadTheDocs) -> None:
62
if "sphinx" not in config.document:
63
config.document["sphinx"] = {}
64
sphinx = config.document["sphinx"]
65
- if "configuration" not in sphinx:
66
- conf_path = __get_sphinx_config_path()
+ conf_path = __get_sphinx_config_path()
+ if "configuration" not in sphinx and conf_path:
67
sphinx["configuration"] = str(conf_path)
68
msg = f"Set sphinx.configuration to {conf_path}"
69
config.changelog.append(msg)
0 commit comments