This got me thinking. I would like a tool that does this as part of a CI flow for my statically generated marketing site.
Is there anything out there like that? I imagine others have this problem of occasionally pushing out marketing site changes and unknowingly there are broken links.
Yes. I build my static blog with Gatsby, which has a sitemap plugin. During a CI pipeline, I iterate over each link in the sitemap and check the pages for accessibility issues using the great pa11y tool. It would be quite trivial to check for broken links as well.
With Github Actions, I presume it would be feasible to make a tool for this and distribute it as a custom action in their marketplace.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This got me thinking. I would like a tool that does this as part of a CI flow for my statically generated marketing site.
Is there anything out there like that? I imagine others have this problem of occasionally pushing out marketing site changes and unknowingly there are broken links.
Yes. I build my static blog with Gatsby, which has a sitemap plugin. During a CI pipeline, I iterate over each link in the sitemap and check the pages for accessibility issues using the great
pa11y
tool. It would be quite trivial to check for broken links as well.With Github Actions, I presume it would be feasible to make a tool for this and distribute it as a custom action in their marketplace.