From 712983ef56e66ff92e945e398d5d183e04f850b0 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 11 Oct 2021 20:18:46 +1100 Subject: [PATCH] Fix context map setting --- docs/hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/hooks.py b/docs/hooks.py index 701e941..ecf2451 100644 --- a/docs/hooks.py +++ b/docs/hooks.py @@ -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