From 93360a46fc83e6e6ba3bb91c2ab76b4f1b797f83 Mon Sep 17 00:00:00 2001 From: Jeroen Dalsem Date: Thu, 5 Dec 2024 11:21:24 +0100 Subject: [PATCH] chore(docs): set the canonical docs url for readthedocs --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index cd16017f292..3f4b222800a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,6 +26,9 @@ from sphinx.highlighting import lexers from pygments.lexers.web import PhpLexer +# Set canonical URL from the Read the Docs Domain +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") + # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [