From d649abd5a7420dddc8fb1db03c8cc93e80eb5903 Mon Sep 17 00:00:00 2001 From: redteampanda-ng <31235211+redteampanda-ng@users.noreply.github.com> Date: Thu, 18 Jul 2024 08:12:53 +0200 Subject: [PATCH 1/2] 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 2cc5712..5c55e55 100644 --- a/conf.py +++ b/conf.py @@ -1,3 +1,5 @@ +import os + project = 'ASGARD Management Center v3 Manual' version="3.0" copyright = '2023, 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} From 5516536e929e740d321955cd5fa87bd75b22ea04 Mon Sep 17 00:00:00 2001 From: redteampanda-ng <31235211+redteampanda-ng@users.noreply.github.com> Date: Thu, 18 Jul 2024 08:14:51 +0200 Subject: [PATCH 2/2] chore: remove unused extensions --- conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/conf.py b/conf.py index 5c55e55..ba7913f 100644 --- a/conf.py +++ b/conf.py @@ -6,7 +6,6 @@ author = 'Nextron Systems' extensions = [ 'sphinx.ext.autosectionlabel', - 'sphinx_rtd_theme' ] templates_path = ['_templates'] source_suffix = '.rst'