Explictly set html_baseurl on RTD. (#6507)

This commit is contained in:
Andrey Rakhmatullin 2024-10-29 14:16:03 +05:00 committed by GitHub
parent b4bad97eae
commit 0523e1616d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import os
import sys
from pathlib import Path
@ -186,6 +186,8 @@ html_css_files = [
"custom.css",
]
# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
# Options for LaTeX output
# ------------------------