Skip to content

Commit

Permalink
Docs: Use sphinx-notfound-page to show a nicer 404 page (python#111084)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Dec 2, 2023
1 parent a35a305 commit 0229d2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@
'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:
Expand Down
1 change: 1 addition & 0 deletions Doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0229d2a

Please sign in to comment.