Skip to content

Commit f817d72

Browse files
committed
RTD base url
1 parent 340cdb5 commit f817d72

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# -- Project information -----------------------------------------------------
88

99
import datetime
10+
import os
1011
import pathlib
1112
import sys
1213

@@ -49,6 +50,9 @@
4950
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
5051
master_doc = "index"
5152

53+
# Set canonical URL from the Read the Docs Domain
54+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
55+
5256
# -- Options for HTML output -------------------------------------------------
5357

5458
# The theme to use for HTML and HTML Help pages. See the documentation for

0 commit comments

Comments
 (0)