-
Notifications
You must be signed in to change notification settings - Fork 281
[chore] Remove docfx as unnecessary #1008
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
|
/cc @reyang in case you have any context on docfx checks we might still need |
IIRC, relative links in markdown is verified by docfx, probably something that can be covered or already covered by markdownlint. |
thanks! let me check |
|
thanks @reyang for the pointer, neither |
|
FYI - https://github.com/theoludwig/markdownlint-rule-relative-links seems promising (although the download number seems low). Probably give it a try as it seems to be blessed by the owner of markdownlint DavidAnson/markdownlint#586 (comment). |
|
you sent me to the rabbit hole @reyang 😅 apparently markdownlint-rule-relative-links does not support absolute links (e.g. /docs/http/http-spans.md#something). It does support validation for The TL;DR: docfx v2 does not support checking anchors in other files (only within the same file), which is already covered by markdownlint. I'll merge this PR and will create an issue to figure out how to do cross-file anchor checks. |
in Java, we're pinning an older version of |
cool, I'll check and send the PR - I have some other changes for that thing staged. |
|
oh no, I thought we (Java) were getting cross-file anchor link checking, but did a quick test and we're not 😢 |
DocFx v3 is no longer available and not intended to be used externally. The feature it provided that we don't have from other tooling is cross-file anchor reference check, see open-telemetry/semantic-conventions#1009 for the details. It seems there is no popular (or even not popular) replacement for it. DocFx v2 only check anchors within the same file which markdownlint does as well. Related: open-telemetry/semantic-conventions#1008 Closes #4026.
DocFx v3 is no longer available and not intended to be used externally. The feature it provided that we don't have from other tooling is cross-file anchor reference check, see open-telemetry/semantic-conventions#1009 for the details. It seems there is no popular (or even not popular) replacement for it. DocFx v2 only check anchors within the same file which markdownlint does as well. Related: open-telemetry/semantic-conventions#1008 Closes open-telemetry#4026.
Fixes #987
Changes
Docfx was introduced in the spec repo a while ago - open-telemetry/opentelemetry-specification#742
with the intention to detect broken links.
Docfx v3 we used since open-telemetry/opentelemetry-specification#2285 was in preview and is no longer accessible and not recommended to be used even if built from sources.
Docfx is a site-generator, not a linting tool, there is no (?) documentation on checks against docs it does.
We already have individual markdown lint and link checks.
With all of this I suggest removing docfx since it seems to be unnecessary.
Merge requirement checklist
[chore]PS: I'll send a similar PR to the spec.