Skip to content
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

[skip changelog] Disable internal anchor checks by link checker tool #1692

Merged
merged 1 commit into from
Mar 22, 2022
Merged

[skip changelog] Disable internal anchor checks by link checker tool #1692

merged 1 commit into from
Mar 22, 2022

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Mar 22, 2022

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • [N/A] Tests for the changes have been added (for bug fixes / features)
  • [N/A] Docs have been added / updated (for bug fixes / features)
  • [N/A] UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

Infrastructure bug fix.

  • What is the current behavior?

Validation of links to internal anchors (tcort/markdown-link-check@6522186) was recently added to the "markdown-link-check" tool used to check for broken links in this project's documentation.

Although a much needed feature, unfortunately it does not currently support anchors created by HTML anchor tags (tcort/markdown-link-check#195).

For example, this is valid and common Markdown:

[click here](#some-anchor)
<a name="some-anchor"></a>

but will fail the check:

FILE: foo.md
  [✖] #some-anchor

  1 links checked.

  ERROR: 1 dead links found!
  [✖] #some-anchor → Status: 404

This type of link markup is used by the "protoc-gen-doc" tool that generates the gRPC interface documentation, causing a spurious failure of the link check.

  • What is the new behavior?

The solution is to configure "markdown-link-check" to skip these links (which was the behavior anyway with versions 3.9.0 and older of that tool). That configuration will be reverted whenever the tool is able to correctly validate internal anchor links (tcort/markdown-link-check#195).

FILE: foo.md
  [/] #some-anchor

  1 links checked.

No breaking change.

Validation of links to internal anchors was recently added to the markdown-link-check tool used to check for broken
links in this project's documentation.

Although a much needed feature, unfortunately it does not currently support anchors created by HTML anchor tags.

For example, this is valid and common Markdown:

[click here](#some-anchor)
<a name="some-anchor"></a>

but will fail the check:

ERROR: 1 dead links found!
[x] #some-anchor -> Status: 404

This type of link markup is used by the protoc-gen-doc tool that generates the gRPC interface documentation, which
causes a spurious failure of the link check.

The solution is to configure markdown-link-check to skip these links (which was the behavior anyway with versions 3.8.7
and older). That will be reverted whenever the tool is able to correctly validate internal anchor links.
@per1234 per1234 added topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project labels Mar 22, 2022
@per1234 per1234 requested a review from umbynos March 22, 2022 13:42
@per1234 per1234 self-assigned this Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants