git-scm.com
git-scm.com copied to clipboard
Eliminate all issues with broken links
How about writing an e2e test suite which can be run by devs which programmatically click all the links on the site and log all broken links? Would it bring down all the issues with broken links on this repo seeing that eliminating broken links would then be a one time process?
Probably but someone has to do it and to maintain it.
It might be easier to just track 404 errors. But for that, someone needs access to logs (anonymisised)
When developing the new publishing script for progit2 books, I used linkchecker to assert that all the internal links are indeed pointing to an existing anchor.
@Sicaine Tracking 404 errors is a reactive way of dealing with the errors IMHO. I'd be willing to contribute to the e2e tests if we decide to go that way. I see this project already uses grunt. How hard could it be to just crawl the links and log 404s.
@jnavila does it have grunt integration? I found this: https://github.com/ChrisWren/grunt-link-checker
seems useful: https://github.com/endymion/link-checker
many dead links can be found using http://www.brokenlinkcheck.com/broken-links.php#status
I'd like to work on this, please.
hey @Lawrence4code :) thank you for your interest!
As you can see through the comments, we never investigated a solution for this problem. Do you already have any ideas on how to solve this? If not, we can try to brainstorm some possible implementation