Skip to content

Commit

Permalink
Merge pull request #66 from manics/rtd-custom-domain-config
Browse files Browse the repository at this point in the history
 RTD custom domain changes
  • Loading branch information
manics authored Jul 22, 2024
2 parents 4aee7c0 + 19a832c commit 11a06ad
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 11a06ad

Please sign in to comment.