Skip to content

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

Merged
hugovk merged 2 commits intopython:mainfrom
hugovk:docs-sphinx-notfound-page
Dec 2, 2023
Merged

Docs: Use sphinx-notfound-page to show a nicer 404 page#111084
hugovk merged 2 commits intopython:mainfrom
hugovk:docs-sphinx-notfound-page

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Oct 19, 2023

Currently we have the default nginx 404:

image

Use the https://pypi.org/project/sphinx-notfound-page/ extension to show a nicer 404 page:

image

We're also using this at https://devguide.python.org/

I kept the defaults here but we can configure the title and text, or template:

Let's not backport this immediately; I'd like to check it at https://docs.python.org/dev/ first.


📚 Documentation preview 📚: https://cpython-previews--111084.org.readthedocs.build/

@hugovk hugovk added skip issue skip news docs Documentation in the Doc dir labels Oct 19, 2023
@hugovk
Copy link
Member Author

hugovk commented Dec 2, 2023

Let's try this on https://docs.python.org/dev/ first.

@hugovk hugovk enabled auto-merge (squash) December 2, 2023 17:29
@hugovk hugovk merged commit 0229d2a into python:main Dec 2, 2023
@hugovk hugovk deleted the docs-sphinx-notfound-page branch December 2, 2023 17:41
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant