Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

Merged
per1234 merged 1 commit into arduino:master from per1234:ignore-anchor-links
Mar 22, 2022
Merged

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

per1234 merged 1 commit into arduino:master from per1234:ignore-anchor-links
Mar 22, 2022

Conversation

Copy link
Contributor

@per1234 per1234 commented Mar 22, 2022
edited
Loading

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
@per1234 per1234 merged commit f470f40 into arduino:master Mar 22, 2022
@per1234 per1234 deleted the ignore-anchor-links branch March 22, 2022 14:20
per1234 added a commit that referenced this pull request Apr 28, 2025
...er tool (#1692)" (#2900)
This reverts commit f470f40.
This configuration entry was previously required in order to work around a bug in the "markdown-link-check" tool that
resulted in false positives for links to anchors created by HTML anchor tags.
The bug in the "markdown-link-check" tool has since been fixed, and this project updated to use the version of the tool
with that fix. So this configuration entry is no longer required.
The now superfluous configuration entry is hereby removed in order to ensure more comprehensive link check coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
1 more reviewer

@umbynos umbynos umbynos approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /