Skip to content

Commit ab49715

Browse files
committed
RTD base url
1 parent 0b8369d commit ab49715

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/conf.py

+4
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

@@ -52,6 +53,9 @@
5253
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
5354
master_doc = "index"
5455

56+
# Set canonical URL from the Read the Docs Domain
57+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
58+
5559
# -- Options for HTML output -------------------------------------------------
5660

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

0 commit comments

Comments
 (0)