A site is made of promises that an address still leads somewhere. tiledown check-links
checks them.
tiledown check-links cv.md # one Markdown file
tiledown check-links dist/ # a built site, every page
tiledown check-links --internal dist/ # the site's own links and anchors
It finds each link with the file and line where it is written, in inline, reference
and automatic links, images, front matter, and href, src, poster and srcset
in HTML. Each address is requested once, and every link ends in exactly one group:
okmoved, a permanent redirect, with the new address so the link can be updatedbroken, with the status or the reason: DNS, TLS, timeout, refused connection, redirect loopunverifiable, for a host that turns automated requests awayskipped, formailto:andtel:
The check is polite: HEAD first, one host at a time with a delay, an honest
User-Agent. --json prints a machine-readable report, and the exit status is 0
unless a link is broken, or with --strict also moved or unverifiable.
It is the only command that uses the network, and only when you call it.
build-site, serve and doctor behave exactly as before. The full reference is
in docs/check-links.md in the repository.