A docs repo that uses Markdown should use all the best tools to ensure its Markdown is correct etc.
So link checkers and linters are great.
I am suggesting markdown-link-check here but there is also lychee:
"Fast, async, stream-based link checker written in Rust. Finds broken URLs and mail addresses inside Markdown, HTML, reStructuredText, websites and more! "
https://github.com/lycheeverse/lychee
refs #29
But I could not get lychee working with pre-commit on Apache Sedona and there is an open issue regarding what I found
apache/sedona#1366
lycheeverse/lychee#1635
Otherwise markdown-link-check is a popular tool:
https://github.com/tcort/markdown-link-check
https://github.com/tcort/markdown-link-check?tab=readme-ov-file#run-as-a-pre-commit-hook
The config file supports many options/parameters:
https://github.com/tcort/markdown-link-check?tab=readme-ov-file#config-file-format