-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Navigation bar in 404 pages for older versions points to /stable
#10643
Comments
I think this is essentially the same issue as ansible/ansible-documentation#94 |
Yes. (this is the short answer 😄 ) Right now, Read the Docs finds a Unfortunately, there isn't too much Read the Docs can do here, but the solution would be to add the |
I'm sure there are some other hacky JS solution that could be implemented. However, they would be pretty fragile and won't work for all the use-cases --but it's probably something you can implement on your side if you have a limited use-case. I'm just thinking about "rewrite all the links with |
Thanks a lot @humitos! Knowing that I'm on the right path is reassuring anyway. I guess this would be easier if we followed branch-based versioning, as you suggest in this blog post of yours I keep coming back to... In any case, happy to close this issue. |
Details
Expected Result
We are using https://sphinx-notfound-page.readthedocs.io/ to generate good-looking 404 pages on Read the Docs instead of the classic "maze found" page. This is a net improvement over what we had earlier. kedro-org/kedro#2486
We'd like these 404 pages to retain the navigation menu of older versions.
Actual Result
A description of what actually happened
/stable
or/latest
, for example https://docs.kedro.org/en/0.18.12/configuration/configuration_basics.htmlsphinx-notfound-page
, for example to0.18.5
/stable
and wonder how is one supposed to reach the older version of the docs now ❓0.18.5
version again in the flyout, only to land inhttps://docs.kedro.org/en/0.18.5/404.html
with the navigation still pointing to/stable
Looking at https://sphinx-notfound-page.readthedocs.io/en/latest/configuration.html#confval-notfound_urls_prefix, we now realize that maybe this is intended behavior and
sphinx-notfound-page
is not a good solution for us. Do you know what could be an alternative that still gives a 404 page under our control, but retains the navigation? Should we add a404.html
to all older versions and rebuild them?cc @stichbury
The text was updated successfully, but these errors were encountered: