-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Links don't work #17
Comments
Hrm, having the links be root-relative is really handy as it makes it easy to find places which link to a given document. I wonder if there's a configuration option to prefix the links suitably during the build? |
The site URL is set to include |
Hrm, so it looks like mkdocs has explored this in the past, but I'm not really sure of the outcomes of their discussions. Relevant issues I found: I think this may mean that we need to use relative urls in the source |
I think it's important to fix this and set a precedent for how to do links, ideally before we get too far down the line on this. I'd therefore like to solicit opinions on whether we want to continue using root-relative links (and roll our own validation, likely with some other tool), or switch to relative links. If we do switch to relative links, input on how we validate that links are spelled properly such that they are validated would also be welcome. Once we have a conclusion, I'm happy to do the work to migrate us to whatever we choose. |
Personally, i'd take the same approach as I do with imports in Python. If the target is lower in the tree, and shares all the same parents (ie you can start it with a Doing 100% relative is going to lead to craziness if things traverse large sections of the site. Root-relative is annoying, but it's far more sustainable in the longer term IMO. |
As I see it, root-relative links have the following advantages:
However, they have the disadvantages that:
They're also verbose, though I can see arguments for this being an advantage as well as a disadvantage (I see it as an advantage). Location relative links have the following advantages:
Location relative links have the following disadvantages:
|
I've just raised mkdocs/mkdocs#1853 regarding a gap in the validation for links which otherwise look internal and mkdocs/mkdocs#1854 for a possible general solution. Neither of these move in the direction we'd wanted (root-relative links), but might yield a compromise we can live with (fully validated relative links). |
The changes suggested by #58 should fix this issue. |
I agree plain github pages doesn't look great. We should bear in mind that that could trivially be fixed by proxying the same way the docs (etc.) are proxied. That approach has the benefit that anyone can see how it works and submit patches to change it. |
(sorry, got off track there, will cross post) we should note that the DNS approach doesn't necessarily fix this as links will still need to be changed to being relative if we want validation. |
@RealOrangeOne unfortunately I don't think this is fixed. Consider the link "judge" on https://studentrobotics.org/runbook/competition/matches/commentating/. |
I concur. I think for the sake of Going to spend some time going through the pages, and making sure they all work. |
It seems most links are relative to the website root. (i.e.
/competition/event/sr2017-event
) when everything served in the github.io page is in therunbook
subdirectory, so the correct links should be/runbook/competition/event/sr2017-event
.The text was updated successfully, but these errors were encountered: