Skip to content

Commit ac657ab

Browse files
committed
Docs: fix 404 page prefix configuration
The default is /en/latest/, but current docs hosting doesn't use this pattern. There's one 404 page for whole docs subdomain, so there's no need to provide a prefix per-version and/or per-language.
1 parent 48d0d0d commit ac657ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,11 @@
548548
refcount_file = 'data/refcounts.dat'
549549
stable_abi_file = 'data/stable_abi.dat'
550550

551+
# Options for notfound.extension
552+
# ------------------------------
553+
if not os.getenv("READTHEDOCS"): # RTD uses different URLs patterns
554+
notfound_urls_prefix = '/3/'
555+
551556
# Options for sphinxext-opengraph
552557
# -------------------------------
553558

0 commit comments

Comments
 (0)