mirror of
				https://github.com/inventree/inventree-docs.git
				synced 2025-10-30 20:35:38 +00:00 
			
		
		
		
	Fix context map setting
This commit is contained in:
		| @@ -47,7 +47,7 @@ def on_config(config, *args, **kwargs): | |||||||
|                 readthedocs[k] = os.environ[key] |                 readthedocs[k] = os.environ[key] | ||||||
|  |  | ||||||
|         # Supply this to the context |         # Supply this to the context | ||||||
|         config.readthedocs = readthedocs |         config['readthedocs'] = readthedocs | ||||||
|          |          | ||||||
|     else: |     else: | ||||||
|         print("'READTHEDOCS' environment variable not found") |         print("'READTHEDOCS' environment variable not found") | ||||||
| @@ -56,7 +56,7 @@ def on_config(config, *args, **kwargs): | |||||||
|         assets_dir = '/assets' |         assets_dir = '/assets' | ||||||
|         site_url = config['site_url'] |         site_url = config['site_url'] | ||||||
|  |  | ||||||
|         config.readthedocs = False |         config['readthedocs'] = False | ||||||
|  |  | ||||||
|     config['assets_dir'] = assets_dir |     config['assets_dir'] = assets_dir | ||||||
|     config['site_url'] = site_url |     config['site_url'] = site_url | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user