We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sphinx-notfound-page
1 parent 3d49e49 commit 242ededCopy full SHA for 242eded
1 file changed
Doc/conf.py
@@ -570,6 +570,17 @@
570
stable_abi_file = 'data/stable_abi.dat'
571
threadsafety_file = 'data/threadsafety.dat'
572
573
+# Options for notfound.extension
574
+# -------------------------------
575
+
576
+if not os.getenv("READTHEDOCS"):
577
+ if language_code:
578
+ notfound_urls_prefix = (
579
+ f'/{language_code.replace("_", "-").lower()}/{version}/'
580
+ )
581
+ else:
582
+ notfound_urls_prefix = f'/{version}/'
583
584
# Options for sphinxext-opengraph
585
# -------------------------------
586
0 commit comments