Skip to content

ignore root-relative links in lychee link check#783

Merged
InessaPawson merged 3 commits intopyOpenSci:mainfrom
InessaPawson:lychee
Feb 8, 2026
Merged

ignore root-relative links in lychee link check#783
InessaPawson merged 3 commits intopyOpenSci:mainfrom
InessaPawson:lychee

Conversation

@InessaPawson
Copy link
Contributor

Exclude root-relative paths (/…) from the lychee link checker to prevent InvalidPathToUri errors when scanning the built _site HTML. This keeps external link validation intact while avoiding false CI failures on internal site links.

Exclude root-relative paths (/…) from the lychee link checker to prevent InvalidPathToUri errors when scanning the built _site HTML. This keeps external link validation intact while avoiding false CI failures on internal site links.
@InessaPawson
Copy link
Contributor Author

pre-commit.ci autofix

@InessaPawson InessaPawson marked this pull request as ready for review January 10, 2026 19:44
@InessaPawson
Copy link
Contributor Author

pre-commit.ci autofix

And then I learnt that this trick doesn’t work for GitHub Workflows in this repo, and had to do it manually.:)

@InessaPawson InessaPawson merged commit 4aac41b into pyOpenSci:main Feb 8, 2026
5 checks passed
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.

2 participants