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

Add GH action to find broken links in Documentation (and elsewhere?) #3342

Open
mccabete opened this issue Apr 4, 2018 · 6 comments
Open

Comments

@mccabete
Copy link
Contributor

mccabete commented Apr 4, 2018

To put in a test that finds broken links, we could add a GH Action like https://github.com/marketplace/actions/lychee-broken-link-checker to check for broken links on build; it isn't clear to me where to put this in the build process.


Original bug report:

I've noticed that most/all of the links in the documentation that are shortcuts to other parts of the documentation tend to throw a 404 error. This doesn't seem to be true of links that are to external places.

Example

Documentation: "Adding-an-Input-Converter" redirects to this.

Next Steps

  1. figure out what makes these links out of date
  2. put in a test that catches expired links
@mccabete

This comment was marked as resolved.

@mdietze

This comment was marked as resolved.

@mdietze

This comment was marked as outdated.

@dlebauer
Copy link
Member

The links in the original bug report post are broken, but it seems like a lot (prob. not all!) of this has been fixed.

To put in a test that finds broken links, we could add a GH Action like https://github.com/marketplace/actions/lychee-broken-link-checker to check for broken links on build; it isn't clear to me where to put this in the build process.

@dlebauer dlebauer transferred this issue from PecanProject/pecan-documentation Jul 23, 2024
@dlebauer dlebauer changed the title Links in the Documentation that redirect to other places in the Documentation broken Add GH action to find broken links in Documentation (and elsewhere?) Was: Links in the Documentation that redirect to other places in the Documentation broken Jul 23, 2024
@dlebauer dlebauer changed the title Add GH action to find broken links in Documentation (and elsewhere?) Was: Links in the Documentation that redirect to other places in the Documentation broken Add GH action to find broken links in Documentation (and elsewhere?) Jul 23, 2024
@infotroph
Copy link
Member

I support automated link checking, with the caveat that any "hit a bunch of external links" task is going to be slower than we think and will see lots of transient failures even from basically-working sites.

I vote we put this outside the build process, running on a set schedule (weekly?) rather than every PR and opening issues for (repeated?) failures rather than breaking the build.
Operationally, this means it should be implemented in a new file named something like .github/workflows/check-links.yml and its first 10 lines should be similar to .github/workflows/ci-weekly.yml.

@Sweetdevil144
Copy link
Contributor

Would this help : #3269 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Development

No branches or pull requests

5 participants