Skip to content

Commit c6ba210

Browse files
authored
chore(docs): specify canonical URL
1 parent b1212a4 commit c6ba210

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: docs/source/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# For the full list of built-in configuration values, see the documentation:
55
# https://www.sphinx-doc.org/en/master/usage/configuration.html
66

7+
import os
78
import sys
89
from datetime import date
910

@@ -55,6 +56,7 @@
5556
# -- Options for HTML output -------------------------------------------------
5657
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
5758

59+
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "/")
5860
html_theme = "furo"
5961
html_static_path = ["_static"]
6062
html_favicon = "_static/favicon.png"

0 commit comments

Comments
 (0)