Skip to content

Commit

Permalink
Set RTD canonical URL
Browse files Browse the repository at this point in the history
  • Loading branch information
edtechre committed Jul 17, 2024
1 parent c283d92 commit 90c9f76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@
html_theme = "sphinx_rtd_theme"
html_static_path = ["../_static"]
html_extra_path = ["../_html"]
# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
html_context = {}
# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

# Multi-language docs.
language = "en"
Expand Down

0 comments on commit 90c9f76

Please sign in to comment.