Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 2, 2023

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