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 # -------------------------------