Skip to content

Commit

Permalink
🔧 Set canonical URL from the Read the Docs Domain
Browse files Browse the repository at this point in the history
  • Loading branch information
veit committed Jul 17, 2024
1 parent b35acd0 commit d49a077
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
import re


# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")

# Tell Jinja2 templates the build is running on Read the Docs
html_context = {}
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

# -- Project information -----------------------------------------------------

project = "cusy Design-System"
Expand Down

0 comments on commit d49a077

Please sign in to comment.