Skip to content

Commit

Permalink
wip rtd
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Sep 11, 2024
1 parent 9c29c89 commit ebb8760
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@
html_favicon = '../assets/favicon.ico'
html_title = f'{project} v{release}'

html_baseurl = "https://greole.github.io/ginkgo"
# Define the canonical URL if you are using a custom domain on Read the Docs
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'

# Tell Jinja2 templates the build is running on Read the Docs
if read_the_docs_build:
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True


# -- MyST configuration -------------------------------------------------------
Expand All @@ -84,8 +93,6 @@
# -- doxylink configuration -------------------------------------------------
# https://sphinxcontrib-doxylink.readthedocs.io/en/stable/#

read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'

if read_the_docs_build:
doxygen_dir = os.environ['READTHEDOCS_OUTPUT']
doxylink = {
Expand Down

0 comments on commit ebb8760

Please sign in to comment.