From: Heinrich Schuchardt Date: Fri, 19 Jul 2024 21:23:26 +0000 (+0200) Subject: doc: define html_context in conf.py X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=d353e30ef3610c01b031dc9ada53701b13d473d4;p=u-boot.git doc: define html_context in conf.py The dictionary html_context is not passed into conf.py but must be created there. See https://dev.readthedocs.io/en/latest/design/theme-context.html#customizing-the-context Fixes: df86796028df ("doc: enable ReadTheDocs addon management") Reviewed-by: Simon Glass Signed-off-by: Heinrich Schuchardt --- diff --git a/doc/conf.py b/doc/conf.py index e79134cc3d..ced3a6723f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -26,7 +26,9 @@ html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") # Tell Jinja2 templates the build is running on Read the Docs if os.environ.get("READTHEDOCS", "") == "True": - html_context["READTHEDOCS"] = True + html_context = { + 'READTHEDOCS' : True, + } # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the