Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-125895: Fix static asset location for sphinx-notfound-page (GH-1…
…47984)

(cherry picked from commit 80ab6d9)

Co-authored-by: Stan Ulbrych <stan@python.org>
  • Loading branch information
StanFromIreland authored and miss-islington committed Apr 3, 2026
commit e98a331496ad53fc73d61db99bee5185ac283955
11 changes: 11 additions & 0 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,17 @@
refcount_file = 'data/refcounts.dat'
stable_abi_file = 'data/stable_abi.dat'

# Options for notfound.extension
# -------------------------------

if not os.getenv("READTHEDOCS"):
if language_code:
notfound_urls_prefix = (
f'/{language_code.replace("_", "-").lower()}/{version}/'
)
else:
notfound_urls_prefix = f'/{version}/'

# Options for sphinxext-opengraph
# -------------------------------

Expand Down
Loading