-
-
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
404 page is not rendered properly when mkdocs-material is used #9570
Comments
@renardeinside this is since the 404 page from mkdocs is linking to the styles as absolute links to For sphinx we have an extension that changes the links to be absolute to the default version https://github.com/readthedocs/sphinx-notfound-page. For MkDocs I'm not sure about the solution, maybe setting https://www.mkdocs.org/user-guide/configuration/#site_url could work. |
hi @stsewd , I've
is it something missing or I'm doing wrong? |
btw, this issue is also reproducible even with the example linked in the readthedocs doc as an example. |
@renardeinside your site URL needs to have
yeah, but this problem isn't related to RTD itself, you will have the same problem in any other hosting where the docs are served in a path different from And if setting the site URL works, it should probably be set differently for each version ( |
huge thanks @stsewd , adding |
Details
Expected Result
When running
mkdocs serve
locally, 404 page is rendered as follows:Actual Result
However when deployed to readthedocs something breaks (maybe during render?), for example
https://dbx.readthedocs.io/notfound
Leads to this:
Code of mkdocs.yml is provided here, readthedocs.yaml is here
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: