mirror of
https://github.com/inventree/inventree-docs.git
synced 2025-04-28 13:46:54 +00:00
Fix context map setting
This commit is contained in:
parent
6552b90959
commit
712983ef56
@ -47,7 +47,7 @@ def on_config(config, *args, **kwargs):
|
||||
readthedocs[k] = os.environ[key]
|
||||
|
||||
# Supply this to the context
|
||||
config.readthedocs = readthedocs
|
||||
config['readthedocs'] = readthedocs
|
||||
|
||||
else:
|
||||
print("'READTHEDOCS' environment variable not found")
|
||||
@ -56,7 +56,7 @@ def on_config(config, *args, **kwargs):
|
||||
assets_dir = '/assets'
|
||||
site_url = config['site_url']
|
||||
|
||||
config.readthedocs = False
|
||||
config['readthedocs'] = False
|
||||
|
||||
config['assets_dir'] = assets_dir
|
||||
config['site_url'] = site_url
|
||||
|
Loading…
x
Reference in New Issue
Block a user