From f817d7282290550949fd74ac8675ccd4c1284f4d Mon Sep 17 00:00:00 2001 From: Amethyst Reese Date: Mon, 22 Jul 2024 12:43:34 -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 b742c82..4f515da 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,6 +7,7 @@ # -- Project information ----------------------------------------------------- import datetime +import os import pathlib import sys @@ -49,6 +50,9 @@ highlight_language = "python3" 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