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.
1 parent 9e5b838 commit 86c726dCopy full SHA for 86c726d
Doc/conf.py
@@ -572,6 +572,17 @@
572
stable_abi_file = 'data/stable_abi.dat'
573
threadsafety_file = 'data/threadsafety.dat'
574
575
+# Options for notfound.extension
576
+# -------------------------------
577
+
578
+if not os.getenv("READTHEDOCS"):
579
+ if language_code:
580
+ notfound_urls_prefix = (
581
+ f'/{language_code.replace("_", "-").lower()}/{version}/'
582
+ )
583
+ else:
584
+ notfound_urls_prefix = f'/{version}/'
585
586
# Options for sphinxext-opengraph
587
# -------------------------------
588
0 commit comments