pecan icon indicating copy to clipboard operation
pecan copied to clipboard

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

Open mccabete opened this issue 7 years ago • 6 comments

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 avatar Apr 04 '18 15:04 mccabete

@tonygardella, not sure if I should move this to pecan

mccabete avatar Apr 04 '18 17:04 mccabete

Yes, please move to the general pecan repo as we no longer keep the documentation in a separate repo

mdietze avatar Apr 05 '18 16:04 mdietze

@tonygardella these appear to be things that really need to be fixed in this release

mdietze avatar Apr 05 '18 16:04 mdietze

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 avatar Jul 23 '24 14:07 dlebauer

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.

infotroph avatar Jul 23 '24 16:07 infotroph

Would this help : #3269 ?

Sweetdevil144 avatar Jul 25 '24 13:07 Sweetdevil144