Skip to content

docs

Links that reach their files, anchors, and sites, and paths and commands that exist. Level all requires a README in every scope and a LICENSE at the root.

Always.

Checks that local documentation links reach existing files and valid anchor or text fragments.

Runs at the commit stage.

A dead link inside the repository breaks silently, and readers hit it first.

Point the link at the file or heading that exists, or delete it. A link that starts with / starts at the repository root.

The link [Setup](missing.md) reports a broken link when no missing.md exists. Point it at the setup guide, or add that file.

gspot ignore docs/lychee --paths "<path>" --reason "<why>"
gspot ignore docs/lychee --rule <rule> --reason "<why>"

Checks every external link over the network.

Runs only when gspot check --only docs/lychee-external names it, and needs network access.

A site that moves or closes breaks a link with no change in the repository.

Update or remove the link, or exclude the URL pattern with a reason under docs.allowed_urls.

A link that returns HTTP 404 reports a broken destination. Replace the URL with a current one, or remove the link.

gspot ignore docs/lychee-external --paths "<path>" --reason "<why>"
gspot ignore docs/lychee-external --rule <rule> --reason "<why>"

Checks that documented paths point to tracked files, and that each documented run command of mise or a package manager names a task or script.

Runs at the commit stage, once for the repository.

A stale path in the docs sends the reader to a deleted file.

Fix the path or the task name. To keep an example out, write it in a fence with title=.

A path in the docs that points to a deleted file reports a stale reference. Update the path and any command that uses it.

Rule What it checks What to do
missing-path Each path in Markdown prose or in a shell code block leads to a tracked file or folder. Correct the path, or put example paths in a code block with a title= attribute.
missing-task Each mise run, npm run, pnpm run, yarn run, or bun run runs a task that exists. Correct the task name, or add the task.
gspot ignore docs/missing-paths --paths "<path>" --reason "<why>"
gspot ignore docs/missing-paths --rule missing-path --reason "<why>"

Reports the version of a package manifest of the scope in Markdown and test files, except changelogs.

Runs at the commit stage, only at the all level, once per scope.

A copied version goes stale at the next release.

Delete the version, or read it from the package manifest.

npm install example@1.2.3 in a README of a package at version 1.2.3 reports version-string. Write npm install example.

gspot ignore docs/version-strings --paths "<path>" --reason "<why>"
Setting What it sets
docs.allowed_urls URL patterns that the link check skips; additions need a reason for the whole list.
Rule file Installed when
.gspot/rules/DOCS.md Always
Tool Version
lychee 0.24.2

.gspot/configurations/docs/lychee.toml