-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Setup broken link checker #100
Comments
Moving forward this would be a really nice thing to have. I found linkinator to be a pretty good npm package at detecting broken links and it supports pointing at markdown files (not just urls). I think there are existing GH Actions out there which will try to crawl the entire site and you can run them on a cron, but since the site is so large I'm unsure if that would be the ideal approach. My hunch is initially we would want something that checks for broken links in PRs and subsequently we might try to figure out some sort of total site crawl thing. |
Some custom code which crawls the entire site and its links takes ~7s on my Mac here, and that's without any attempt at parallelism. It finds the following internal links that 404: (with no concern for #-links)
|
hm weird. that doesn't seem to 404 for me? |
I was running this against localhost, so origintrials/devsummit aren't
available, they're provided via the GFE.
…On Sat, 30 Jan 2021 at 09:33, Rob Dodson ***@***.***> wrote:
'/origintrials/',
hm weird. that doesn't seem to 404 for me?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#100 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA5DEAV4N3VPIZZODSZEV3S4MZTBANCNFSM4U63I54Q>
.
|
Closing in favor of GoogleChrome/webdev-infra#46. |
@samthor commented on Wed Nov 25 2020
This could happen as a GitHub action after the site is built and a PR is checked.
(If it's way too noisy of course, we'll revisit this.)
The text was updated successfully, but these errors were encountered: