diff --git a/conf.py b/conf.py index b917874..b2d2368 100644 --- a/conf.py +++ b/conf.py @@ -1,10 +1,11 @@ +import os + project = 'ASGARD Inventory Analyzer Manual' version="1.0" copyright = '2023, Nextron Systems GmbH' author = 'Nextron Systems' extensions = [ 'sphinx.ext.autosectionlabel', - 'sphinx_rtd_theme', ] templates_path = ['_templates'] source_suffix = '.rst' @@ -16,11 +17,16 @@ 'prev_next_buttons_location': 'both', 'style_external_links': True } - html_logo = "images/html/inventory-logo.png" 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} @@ -28,4 +34,4 @@ autosectionlabel_prefix_document = True autosectionlabel_maxdepth = 3 # disable epub mimetype warnings -suppress_warnings = ["epub.unknown_project_files"] \ No newline at end of file +suppress_warnings = ["epub.unknown_project_files"]