This recipe uses DocFresh fixtures to show the two review outcomes maintainers need before a PR: a passing docs scan and a stale-docs failure.
npm run build
bash demo/run-docs-sweep.shThe script writes reports under a temporary directory and verifies both cases:
fixtures/valid-docsexits0and produces text plus JSON reports.fixtures/stale-docsexits1and names the documentation drift.
Use this before opening a PR that changes README examples, package scripts, local links, or smoke-marked code blocks. The JSON output is useful for agents and automation; the text output is easier to paste into a human review.
DocFresh does not run arbitrary README commands by default. Smoke commands run only when fenced code blocks opt in with docfresh: smoke and the CLI is called with --smoke.