Skip to content

Commit

Permalink
Fix the canonical URL on RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer committed Sep 19, 2023
1 parent 9205dc9 commit 3a25d27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions publishconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
from pelicanconf import *


if "READTHEDOCS" in os.environ:
# Make all URLs "domainless" in the RTD preview
if os.environ.get("READTHEDOCS_VERSION_TYPE") == "external":
# Make all URLs "domainless" in the RTD PR preview
# https://docs.readthedocs.io/en/stable/reference/environment-variables.html
SITEURL = ""
else:
# This setting is needed to make the RSS/Atom feeds generate correctly
Expand Down

0 comments on commit 3a25d27

Please sign in to comment.