diff --git a/docs/conf.py b/docs/conf.py index 888c300..dcf5410 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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"