Skip to content

Commit 93e4669

Browse files
committed
RTD base url
1 parent ea88e82 commit 93e4669

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
@@ -18,6 +18,7 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
import datetime
21+
import os
2122

2223
project = "attribution"
2324
copyright = f"{datetime.date.today().year}, Amethyst Reese"
@@ -55,6 +56,9 @@
5556
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
5657
master_doc = "index"
5758

59+
# Set canonical URL from the Read the Docs Domain
60+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
61+
5862
# -- Options for HTML output -------------------------------------------------
5963

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

0 commit comments

Comments
 (0)