-
Notifications
You must be signed in to change notification settings - Fork 909
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
[editorial] Use path, not external URL, for link to spec page; and fix broken link #3310
[editorial] Use path, not external URL, for link to spec page; and fix broken link #3310
Conversation
chalin
commented
Mar 10, 2023
•
edited
Loading
edited
- This is part of an effort to normalize links, for improved link checking of the OTel website.
- Contributes to CI: external-link check follow up and link cleanup opentelemetry.io#2429
- Fixes the broken link to "Metric Metadata", which moved to another page via Move Prometheus/OpenMetrics compatibility to its own file #2952.
Since the following PR: The link to "Metric Metadata" has moved. I've added the fix to this PR (through the second commit). |
Maybe there should be a check (in this repo) to catch external links to local spec pages? |
We'll be checking for this on the website side of things (FYI): |
Not sure how helpful that is, since the path starts with |
Hi @Oberon00. I'm not sure I understand your comment. Are you against using a path vs a full URL for local page references (because I noticed that you didn't give your approval for this PR)? Or are you saying that you'd prefer that the path be relative rather than absolute. Which extra flexibility are you looking for? |
To clarify: there's an extra cost in checking external links, managing the external link caches etc., so it doesn't make sense to use an external URL for internal paths. By the way, we do link checking (internal and external) for the entire OTel website, which includes the full specification, in 9 seconds -- for example see this build log:
That's in contrast to the 180 seconds required by markdown-link-check running over only the spec. So it's worth paying careful attention to how links are encoded. I hope this helps clarify the motivation behind this PR. Thanks! |
Sorry for misunderstandings, this was just a curious comment. I didn't mean to indicate disapproval (I haven't reviewed the PR just because I don't have a qualified opinion on it, and I don't review every PR I comment on 🙂) |
@Oberon00 - no worries, thanks for clarifying. Thanks all for the review and merging. |