]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
doc: define html_context in conf.py
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 19 Jul 2024 21:23:26 +0000 (23:23 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jul 2024 22:48:07 +0000 (16:48 -0600)
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")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
doc/conf.py

index e79134cc3d7583f0ef3c0600534164f984499a8b..ced3a6723fc5ee5ed434516040fd55fd957cfa88 100644 (file)
@@ -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