Skip to content

Commit

Permalink
RTD is going to stop injecting config on the fly. This affects custom…
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Jul 22, 2024
1 parent 4aee7c0 commit 19a832c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import os

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Expand Down Expand Up @@ -43,6 +44,15 @@
"footer_end": ["footer-links"],
}

html_context = {}

# Readthedocs specific configuration
# https://about.readthedocs.com/blog/2024/07/addons-by-default/
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True


# -- Link checker configuration

linkcheck_ignore = [
Expand Down

0 comments on commit 19a832c

Please sign in to comment.