Sign inSign up

pt9912/d-check

By pt9912

Updated 3 days ago

Deterministic, network-free reference gate for Markdown repos: links, anchors, IDs, quotes.

Image
Developer tools
0

963

pt9912/d-check repository overview

d-check

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.

Usage

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

Exit codes

CodeMeaning
0no findings
1findings reported
2usage or configuration error (including: nothing mounted at /repo)

Reproducible runs

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.

Modules

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.

Documentation

Source and issues: https://github.com/pt9912/d-check · Licence: MIT

Tag summary

Content type

Image

Digest

sha256:70d94ebf8

Size

4.6 MB

Last updated

3 days ago

docker pull pt9912/d-check