Skip to content

Commit 69efeef

Browse files
chore: add changes for new rtd build process
1 parent 0d22ba7 commit 69efeef

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

conf.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import os
2+
13
project = 'ASGARD Security Center v2 Manual'
24
version="2.0"
35
copyright = '2023, Nextron Systems GmbH'
46
author = 'Nextron Systems'
57
extensions = [
68
'sphinx.ext.autosectionlabel',
7-
'sphinx_rtd_theme'
89
]
910
templates_path = ['_templates']
1011
source_suffix = '.rst'
@@ -20,6 +21,12 @@
2021
html_favicon = "images/html/favicon.ico"
2122
html_static_path = ['_static']
2223
html_css_files = ['css/custom.css',]
24+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
25+
if os.environ.get("READTHEDOCS", "") == "True":
26+
if "html_context" not in globals():
27+
html_context = {}
28+
html_context["READTHEDOCS"] = True
29+
2330
epub_title = project
2431
epub_exclude_files = ['search.html']
2532
intersphinx_mapping = {'https://docs.python.org/': None}

0 commit comments

Comments
 (0)