Documentation
¶
Overview ¶
Command doclint checks that the repository's Markdown files conform to their syntax: the one check a docs-only change needs (ci.yml's docs-lint job; Randy 2026-11-21: "as long as they properly conform to their syntax, I don't see why anything else needs to run"). It reads every tracked *.md file and reports each violation as file:line: message on stdout; the exit status is 1 when there is one, 2 when it could not run.
doclint [--root r]
Rules:
fence a code fence (``` or ~~~) is closed by a fence of the same character, at least as long, before the end of the file
link a relative link [text](path) or  names a file or folder that exists (the anchor and the query are not
checked); absolute URLs, mailto: and a bare #anchor are not checked; links inside a code fence or an inline code
span are not links
nul no NUL byte outside a code fence
Files under testdata/, vendor/, receipts/ and docs/evidence/ are not read: fixtures and captured records hold what they hold on purpose (their links point into other checkouts). It takes seconds and needs no network.