Skip to content

Fix posts URL failures in link checker#868

Merged
willingc merged 1 commit into
pyOpenSci:mainfrom
banesullivan:fix/url-failures
May 25, 2026
Merged

Fix posts URL failures in link checker#868
willingc merged 1 commit into
pyOpenSci:mainfrom
banesullivan:fix/url-failures

Conversation

@banesullivan
Copy link
Copy Markdown
Contributor

CI's link checker fails on every new blog post. HTMLProofer and lychee fetch the absolute self-URL emitted by _layouts/single.html (https://www.pyopensci.org/blog/<post>.html) before the page is deployed, so they 404. Excluding the self-domain in both tools clears the false failures.

Separately, _config.yml listed _posts under include:. Jekyll already collects _posts as a built-in, so every post was processed twice and the build emitted "destination shared by multiple files" warnings. Removing the duplicate entry clears them.

Link checkers will no longer flag internal links written as absolute https://www.pyopensci.org/... URLs. Internal links should use relative paths anyway and are validated against the local _site build.

Copy link
Copy Markdown
Collaborator

@willingc willingc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the solution. Thanks @banesullivan.

@willingc willingc merged commit 18d942c into pyOpenSci:main May 25, 2026
5 checks passed
@lwasser
Copy link
Copy Markdown
Member

lwasser commented May 27, 2026

thank you @banesullivan !!!

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.

3 participants