-
Notifications
You must be signed in to change notification settings - Fork 42
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
/find/ pages are recursive and broken #92
Comments
I'm not quite sure why it is broken like this but this page is not supposed to be visited in the first place, it was changed to be this way: https://leanprover-community.github.io/mathlib4_docs/find/?pattern=Lean.Meta.abstractMVars#doc |
I think it's broken that way due to use of relative URLs in iframes. If you use absolute urls the issue should go away. |
I'm not quite sure how to make the URLs absolute from a conceptual point of view. The idea with the relative URLs in doc-gen4 was to make it so that anyone can put the generated HTML at any sub URL with any prefix (including none) seamlessly. How could we preserve that without relative URLs? |
I don't think you can solve that. When generating the HTML for the 404 page I think the user needs to specify the folder that the site is hosted from. If you do that, then you can probably get away with just putting |
This https://leanprover-community.github.io/mathlib4_docs/find/?pattern=ohno works. Is there a way to add HTML/javascript code to that page to convert malfotmed https://leanprover-community.github.io/mathlib4_docs/find/ohno to this form? |
The issue here is Github Pages AFAICT. I already elaborated this a bit on Zulip but I can repeat what's going on here: doc-gen already generates a 404.html page that is hosted on Github Pages. That 404.html page heavily relies on being called precisely with What happens now is the following:
I currently don't really see a nice fix for this, if someone knows a way to make this redirect ourselves or convince Github pages to do it for us I would happily add it. |
Maybe it's better to provide another separate 404 page using absolute path? In fact currently any misspelled page will result in broken 404 page, e.g. https://leanprover-community.github.io/mathlib4_docs/Mathlib/FieldTheory/IntermediateField5.html |
I think the thing to do is allow the user to specify a |
This is the wrong site root though :P the correct one would be |
This is a feature; performing a redirect would amount to serving up a 30x status code, which would not be the 404 status code that is meant to happen. |
The page at https://leanprover-community.github.io/mathlib4_docs/find/ohno
gives me
The text was updated successfully, but these errors were encountered: