Deterministic, network-free reference gate for Markdown repos: links, anchors, IDs, quotes.
963
A deterministic, network-free reference gate for Markdown repositories. d-check checks whether a documentation's references hold: local links and images, heading anchors, identifier link obligations, permitted reference directions, paths in inline code, verbatim quotes against their source — and reports what does not hold. It repairs nothing and never writes into the checked repository.
docker run --rm -v "$PWD:/repo:ro" pt9912/d-check:v0.77.0
The mounted directory is checked as /repo; CLI options are appended. The
process runs as non-root, and a read-only mount is sufficient.
docker run --rm -v "$PWD:/repo:ro" pt9912/d-check:v0.77.0 --enable ids --disable external
| Code | Meaning |
|---|---|
0 | no findings |
1 | findings reported |
2 | usage or configuration error (including: nothing mounted at /repo) |
For CI, pin to the digest rather than to a moving tag. This image is a
mirror of ghcr.io/pt9912/d-check — the same image, not a second build:
the config digest is identical on both registries, and the release pipeline
verifies it after the push.
The manifest digest, in contrast, is registry-local — it depends on each registry's blob compression. So take the digest from the registry you pull from; one copied from GHCR will not resolve here.
docker run --rm -v "$PWD:/repo:ro" pt9912/d-check@sha256:<digest>
The digest for every version is listed in the release notes.
:latest moves for stable releases only; pre-releases never receive it.
21 rule modules, most of them opt-in: links, anchors, ids, matrix,
external, sources, codepaths, spans, hostpaths, diagrams,
versions, pins, immutable, vcs, commits, planning, tracked,
targets, citations, structure, workflows. Two of them reach the network
(external, sources) and are never active by default.
Source and issues: https://github.com/pt9912/d-check · Licence: MIT
Content type
Image
Digest
sha256:70d94ebf8…
Size
4.6 MB
Last updated
3 days ago
docker pull pt9912/d-check