Docs: Use sphinx-notfound-page to show a nicer 404 page (#111084)

This commit is contained in:
Hugo van Kemenade 2023-12-02 19:41:40 +02:00 committed by GitHub
parent a35a305098
commit 0229d2a9b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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:

View file

@ -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.