diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-07-19 23:23:26 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-07-20 11:09:36 -0600 |
commit | d353e30ef3610c01b031dc9ada53701b13d473d4 (patch) | |
tree | 082bee3e897da89fb654a269f3823ffd2693b18e | |
parent | 23215d0650edd650a3c76fbf99dd6f7b1c2ce87b (diff) | |
download | u-boot-d353e30ef3610c01b031dc9ada53701b13d473d4.zip u-boot-d353e30ef3610c01b031dc9ada53701b13d473d4.tar.gz u-boot-d353e30ef3610c01b031dc9ada53701b13d473d4.tar.bz2 |
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 <sjg@chromium.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | doc/conf.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/conf.py b/doc/conf.py index e79134c..ced3a67 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 |