-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Fix various links that were generating URLs with .md
#10548
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
Conversation
|
ping @usha-mandya PTAL |
45395dd to
f53fde8
Compare
usha-mandya
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you for fixing all the links :)
f53fde8 to
c2a9ad9
Compare
there's a bug causing wrapped links to not work, and replacing some links to point to the .md file, so that IDE's can check if the anchors are valid. Also replaced some links to point to their new location. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
c2a9ad9 to
6622697
Compare
| - [Discover Network Encryption on | ||
| Kubernetes](/ee/ucp/kubernetes/kubernetes-network-encryption/) | ||
| - [Deploy an Ingress Controller on Kubernetes](/ee/ucp/kubernetes/layer-7-routing/) | ||
| - [Discover Network Encryption on Kubernetes](../kubernetes-network-encryption.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering why we have a relative path and an absolute path for topics in the same directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked at some of those (probably worth a discussion after ee-topics have migrated). So:
Advantage of relative links:
- they work when browsing the markdown on GitHub (I think absolute links don't work there, but would have to double-check)
- moving a whole directory to a different location doesn't break links to pages in the same directory
- ^^ this could help with, e.g. moving whole of
ee/ucptopic to an archived location (datacenter/ucp/3.x), and still linking to related topics for the same version (not the "current" version)
Disadvantage of relative links:
- they can be harder to read. it's "ok" when linking to a child directory (
child-dir/page.md), but becomes hard to follow when linking to parent directories (../../../somedir/page.md) - it's hard to find/replace links when things move (can't search for
/some/old/dir/page.mdto find which links needs updating)
I think the disadvantages are real; mostly when linking to "other" topics (linking to, e.g., a reference-docs page from a product manual). I'm ok with using relative links to link within the same topic though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, thanks for that. Agree, relative links can be very confusing when linking to parent directories. We can discuss this in one of our weekly syncs.
There's a bug in the "jekyll-relative-links" plugin that causes wrapped links to not work. Also replacing some links to point to the .md file, so that IDE's can check if the anchors are valid. Finally, replaced some links to point to their new locations, so that users don't get redirected.. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
6622697 to
7640687
Compare
There's a bug in the "jekyll-relative-links" plugin that causes wrapped links to not work. Also replacing some links to point to the .md file, so that IDE's can check if the anchors are valid.
Finally, replaced some links to point to their new locations, so that users don't get redirected..
Found wrapped markdown links by grepping for
\[[^\]]*\n.*\]\([^\n]+.mdfixes #10546
closes #10551