Skip to content
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

Make Sphinx generate a 404 page #128333

Closed
wants to merge 2 commits into from

Conversation

StanFromIreland
Copy link
Contributor

@StanFromIreland StanFromIreland commented Dec 29, 2024

Currently the docs 404 page is just the standard nginx page which has little features and does not have the Python Docs Header and footer. Most websites have a custom 404 page that is more helpful than the default.

My changes will result in Spinx building the page with the footer and header however the nginx conf must also be modified however this is up to the sysadmin as a PR cannot be submitted for it. I think this is what is required from a google search but I am not too familiar with nginx.

+ error_page 404 /404.html;
+ location = /404.html {
+     internal;
+ }

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

@StanFromIreland StanFromIreland changed the title Create a 404 page using sphinx Make Sphinx generate a 404 page Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant