Skip to content

Commit

Permalink
RTD custom domain changes
Browse files Browse the repository at this point in the history
RTD is going to stop injecting config on the fly. This affects custom domains:
https://about.readthedocs.com/blog/2024/07/addons-by-default/
  • Loading branch information
manics authored Jul 17, 2024
1 parent fd6fff1 commit 2425412
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 2425412

Please sign in to comment.