git-scm.com icon indicating copy to clipboard operation
git-scm.com copied to clipboard

Eliminate all issues with broken links

Open ShashankaNataraj opened this issue 8 years ago • 8 comments

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?

ShashankaNataraj avatar Feb 12 '17 01:02 ShashankaNataraj

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)

Sicaine avatar Feb 12 '17 13:02 Sicaine

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.

jnavila avatar Feb 12 '17 16:02 jnavila

@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

ShashankaNataraj avatar Feb 12 '17 16:02 ShashankaNataraj

seems useful: https://github.com/endymion/link-checker

pedrorijo91 avatar Nov 20 '17 20:11 pedrorijo91

many dead links can be found using http://www.brokenlinkcheck.com/broken-links.php#status

pedrorijo91 avatar Feb 24 '18 18:02 pedrorijo91

I'd like to work on this, please.

Lawrence4code avatar Oct 08 '19 16:10 Lawrence4code

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

pedrorijo91 avatar Oct 08 '19 18:10 pedrorijo91