Skip to content

Commit

Permalink
Merge pull request #3461 from manics/rtd-custom-domains
Browse files Browse the repository at this point in the history
RTD custom domain changes
  • Loading branch information
consideRatio authored Jul 17, 2024
2 parents fd6fff1 + 2425412 commit bbc38ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ def parse_schema(d, md=[], depth=0, pre=""):
}


# -- Readthedocs specific configuration -------------------------------------------
# ref: 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


# -- Options for linkcheck builder -------------------------------------------
# ref: https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder
#
Expand Down

0 comments on commit bbc38ca

Please sign in to comment.