From 69efeef880c49b231bb3fdad1a24ff28693da221 Mon Sep 17 00:00:00 2001 From: redteampanda-ng <31235211+redteampanda-ng@users.noreply.github.com> Date: Thu, 18 Jul 2024 06:46:41 +0200 Subject: [PATCH] chore: add changes for new rtd build process --- conf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/conf.py b/conf.py index df39cd8..1da643a 100644 --- a/conf.py +++ b/conf.py @@ -1,10 +1,11 @@ +import os + project = 'ASGARD Security Center v2 Manual' version="2.0" copyright = '2023, Nextron Systems GmbH' author = 'Nextron Systems' extensions = [ 'sphinx.ext.autosectionlabel', - 'sphinx_rtd_theme' ] templates_path = ['_templates'] source_suffix = '.rst' @@ -20,6 +21,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}