From 428bcf9db5d3b39bbf8cb2901e63c9d9bff0ae26 Mon Sep 17 00:00:00 2001 From: redteampanda-ng <31235211+redteampanda-ng@users.noreply.github.com> Date: Thu, 18 Jul 2024 06:38:55 +0200 Subject: [PATCH] chore: add changes for new rtd build process --- conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conf.py b/conf.py index bc01616..6697646 100644 --- a/conf.py +++ b/conf.py @@ -1,3 +1,5 @@ +import os + project = 'THOR Util Manual' copyright = '2024, Nextron Systems GmbH' author = 'Nextron Systems GmbH' @@ -20,6 +22,12 @@ html_favicon = "images/html/favicon.ico" html_static_path = ['_static'] html_css_files = ['css/custom.css',] +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") +if os.environ.get("READTHEDOCS", "") == "True": + if "html_context" not in globals(): + html_context = {} + html_context["READTHEDOCS"] = True + epub_title = project epub_exclude_files = ['search.html'] intersphinx_mapping = {'https://docs.python.org/': None}