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

Validate internal links that include # (backport #1666) #1667

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Feb 6, 2023

Backport of #1666


Description

The link checking script was ignoring links to other pages with a # in them. The PR fixes that.

It does not validate the anchor is valid within the page, but at least checks the right file exists.

It also handles the case where a src link of foo/bar#anchor can be resolved by the existence of any one of foo/bar/README.md, foo/bar/index.md or foo/bar.md.

This also fixes one broken link these updates helped to reveal.

@knolleary knolleary merged commit 6045b19 into maintenance Feb 6, 2023
@knolleary knolleary deleted the backport-1666 branch February 6, 2023 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant