Skip to content

Commit 6b92e07

Browse files
authored
Docs: Experiment with canonical url using READTHEDOCS_CANONICAL_URL
1 parent 9cfb649 commit 6b92e07

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@
6565

6666
templates_path = ["_templates"]
6767

68+
# This may be elevated as a general issue for documentation and behavioral
69+
# change to the Sphinx build:
70+
# This will ensure that we use the correctly set environment for canonical URLs
71+
# Old Read the Docs injections makes it point only to the default version,
72+
# for instance /en/stable/
73+
html_baseurl = os.environment.get("READTHEDOCS_CANONICAL_URL")
74+
6875
master_doc = "index"
6976
copyright = "Read the Docs, Inc & contributors"
7077
version = "9.10.0"

0 commit comments

Comments
 (0)