From a7266424068607fe9ec6796383096d2d360ae4c8 Mon Sep 17 00:00:00 2001 From: Amethyst Reese Date: Mon, 22 Jul 2024 13:23:49 -0700 Subject: [PATCH] RTD base url --- docs/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 724ab93..b3595a5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,7 @@ # -- Project information ----------------------------------------------------- import datetime +import os project = "thx" copyright = f"{datetime.date.today().year}, Amethyst Reese" @@ -55,6 +56,9 @@ intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} master_doc = "index" +# Set canonical URL from the Read the Docs Domain +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") + # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for