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 2a00d94 commit 1a188aaCopy full SHA for 1a188aa
1 file changed
Doc/conf.py
@@ -561,6 +561,17 @@
561
refcount_file = 'data/refcounts.dat'
562
stable_abi_file = 'data/stable_abi.dat'
563
564
+# Options for notfound.extension
565
+# -------------------------------
566
+
567
+if not os.getenv("READTHEDOCS"):
568
+ if language_code:
569
+ notfound_urls_prefix = (
570
+ f'/{language_code.replace("_", "-").lower()}/{version}/'
571
+ )
572
+ else:
573
+ notfound_urls_prefix = f'/{version}/'
574
575
# Options for sphinxext-opengraph
576
# -------------------------------
577
0 commit comments