summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorthmsdt <thomas.kulik@telekom.de>2024-08-14 12:14:02 +0200
committerthmsdt <thomas.kulik@telekom.de>2024-08-14 12:16:31 +0200
commitca0f5eed74b3f8147f6386fed036a4057b43401a (patch)
tree45598aa1b7c6933174b44c595f043742cd1e0ef8 /docs
parent932ce2f095443f0ad8be0b69d950e47864f76e0f (diff)
deprecation of sphinx context injection at build time
Issue-ID: DOC-826 Change-Id: I9f7a5d3066b0f36c498b504e7d7541a4ab4621fa Signed-off-by: thmsdt <thomas.kulik@telekom.de>
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index b07fd2416..c5dd6812c 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -2,6 +2,22 @@ project = "onap"
release = "master"
version = "master"
+#####
+# Deprecation of Sphinx context injection at build time
+# see https://about.readthedocs.com/blog/2024/07/addons-by-default/
+import os
+
+# Define the canonical URL if you are using a custom domain on Read the Docs
+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":
+ if "html_context" not in globals():
+ html_context = {}
+ html_context["READTHEDOCS"] = True
+#
+#####
+
author = "Open Network Automation Platform"
# yamllint disable-line rule:line-length
copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License"