mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
override extensions in config.py
This commit is contained in:
parent
04d22a53d5
commit
cd3d3d2180
@ -213,6 +213,8 @@ class Config(object):
|
||||
self.overrides = overrides
|
||||
self.values = Config.config_values.copy()
|
||||
config = {}
|
||||
if "extensions" in overrides:
|
||||
config["extensions"] = overrides["extensions"]
|
||||
if dirname is not None:
|
||||
config_file = path.join(dirname, filename)
|
||||
config['__file__'] = config_file
|
||||
|
Loading…
Reference in New Issue
Block a user