mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Docs: Use sphinx-notfound-page to show a nicer 404 page (#111084)
This commit is contained in:
parent
a35a305098
commit
0229d2a9b1
2 changed files with 8 additions and 1 deletions
|
@ -24,7 +24,13 @@ extensions = [
|
|||
'sphinx.ext.doctest',
|
||||
]
|
||||
|
||||
# Skip if downstream redistributors haven't installed it
|
||||
# Skip if downstream redistributors haven't installed them
|
||||
try:
|
||||
import notfound.extension
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
extensions.append('notfound.extension')
|
||||
try:
|
||||
import sphinxext.opengraph
|
||||
except ImportError:
|
||||
|
|
|
@ -13,6 +13,7 @@ blurb
|
|||
|
||||
sphinx-autobuild
|
||||
sphinxext-opengraph==0.7.5
|
||||
sphinx-notfound-page==1.0.0
|
||||
|
||||
# The theme used by the documentation is stored separately, so we need
|
||||
# to install that as well.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue