-
-
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
Some doc links lead to a broken page depending on wether they end with .html
or /
#8256
Comments
I'm not aware that something related to this has changed in the last weeks. cc @stsewd @ericholscher
I'd say that you should always use the link with |
I use MkDoc |
@Zylann hi, this looks like a change in the latest mkdocs release, you can see these warnings in your builds https://readthedocs.org/projects/voxel-tools/builds/13998765/
You need to set |
So that means I need to do this?
Or is there a part of this URL I need to truncate? |
yes, using site_url: https://voxel-tools.readthedocs.io/en/latest/ should do it.
I'm not sure if mkdocs will use that url in all links or just to set some other things, but you are right, that would change on each version, I think mkdocs allows using env vars now https://www.mkdocs.org/user-guide/configuration/#environment-variables, we exposer some env vars that could be useful https://docs.readthedocs.io/en/stable/builds.html#build-environment.
We are moving away from overriding config values from the user. |
So indeed doing |
Yeah, maybe we can expose an env var with the full url or could also request this as an improvement in mkdocs. Opened #8260 to track that change. |
Details
Expected Result & Actual Result
I have links to my documentation such as this one, which works:
https://voxel-tools.readthedocs.io/en/latest/
I think the following one used to work, but recently it leads to a broken page with no CSS:
https://voxel-tools.readthedocs.io/en/latest/quick_start/
However, if I replace the
/
with a.html
, the page is no longer broken:https://voxel-tools.readthedocs.io/en/latest/quick_start.html
There is indeed a difference between the first link and the two other ones since the first one does not specifically point to a page so it's probably handled differently. However, I did not invent or manually type the other original page links, so something likely changed recently. Is this intented? Should I be using only links ending with
.html
now?The text was updated successfully, but these errors were encountered: