From ac657abbc92e5fcf81885e1a1d2d40c21e74edae Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sun, 28 Sep 2025 02:17:29 +0200 Subject: [PATCH] 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. --- Doc/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/conf.py b/Doc/conf.py index c1b07df08b1782..aee0727252800f 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -548,6 +548,11 @@ refcount_file = 'data/refcounts.dat' stable_abi_file = 'data/stable_abi.dat' +# Options for notfound.extension +# ------------------------------ +if not os.getenv("READTHEDOCS"): # RTD uses different URLs patterns + notfound_urls_prefix = '/3/' + # Options for sphinxext-opengraph # -------------------------------