sindresorhus / execa

Process execution for humans
MIT License
6.79k stars 214 forks source link

Automatically check Markdown links #1120

Closed ehmicky closed 3 months ago

ehmicky commented 3 months ago

Our documentation has lots of links and anchors. It actually takes quite some time to ensure the links are correct. Also, external links might stop working without us knowing.

This adds a GitHub action to automatically check Markdown links, including anchors.

This is hard to believe, but apparently it runs in only 2 seconds. This is written in Rust, but I would expect hundreds of parallel HTTP requests to take longer, but it seems not! :)

This PR currently fails (which is good since it shows the action works) due to the broken links that are fixed in a separate PR at #1119.

sindresorhus commented 3 months ago

Failed: Network error: Too Many Requests

Seems to fail with too many requests towards a single host. Seems like the tool should limit concurrency per host to avoid this.

ehmicky commented 3 months ago

There is a max-concurrency option, although it's not per-host. There's also an exclude option. I have added both, and it now seems to work.