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 # #1666

Merged
merged 2 commits into from
Feb 6, 2023
Merged

Validate internal links that include # #1666

merged 2 commits into from
Feb 6, 2023

Conversation

knolleary
Copy link
Member

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.

@ZJvandeWeg ZJvandeWeg merged commit 6576553 into main Feb 6, 2023
@ZJvandeWeg ZJvandeWeg deleted the fix-link-checked branch February 6, 2023 12:39
knolleary added a commit that referenced this pull request Feb 6, 2023
Validate internal links that include # (backport #1666)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants