Make a custom 404 page for Jupyter Book #476
Unanswered
melaniewalsh
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Last year, I wanted to create a custom 404 page for my Jupyter Book that would maintain its styling and table of contents. This can be tricky to do with Sphinx, but there's a great Sphinx extension called
sphinx-notfound-page
that makes it possible.However, as I posted in this issue, I was having some trouble getting the extension to work with my Jupyter Book. But I finally found a solution this week! Here's an example of the 404 page:
To add a custom 404 page like the one above, I installed the sphinx-notfound-page extension, added it to my
_config.yml
file as an extra extension, and configured it like so:The configuration step that finally made the extension work for me was setting
notfound_urls_prefix
to the name of my repository.Beta Was this translation helpful? Give feedback.
All reactions