Check rules reference
docsbot check applies 31 rules in five groups. Run docsbot rules to print this list
from the version you have installed.
- Run only some groups with
--only links,images.
- Change a rule’s severity with
--rule page-orphan=off or in check.rules in
docsbot.yml. Severities are error, warning, info and
off.
- Findings at or above
--fail-level (default error) make docsbot exit 1.
links
| Rule |
Default |
Reported when |
link-missing-file |
error |
a link points to a page or file that does not exist |
link-missing-anchor |
error |
a link points to a #section that does not exist on the target page |
link-case-mismatch |
error |
a link only resolves on case-insensitive file systems (macOS, Windows), not on Linux |
link-empty |
warning |
a link has an empty target |
link-not-in-nav |
warning |
a link points to a page that is not in the navigation |
link-redirect |
warning |
a link goes through a redirect or alias; link to the canonical page |
link-external-broken |
error |
an external URL returns 404 or 410 |
link-external-anchor |
warning |
an external page exists but the #anchor was not found on it (needs --external-anchors) |
link-external-server-error |
warning |
an external URL returns a server error (5xx) after a retry |
link-external-timeout |
warning |
an external URL timed out or could not be reached |
link-external-redirect |
info |
an external URL permanently redirects; update the link |
link-external-unverified |
info |
an external site refused an automated check (401, 403 or 429); verify by hand |
nav-missing-target |
error |
a navigation entry points to a page that does not exist |
page-duplicate-slug |
error |
two files publish to the same URL |
page-orphan |
warning |
no page or navigation entry links to this page (see check.entry_pages) |
images
| Rule |
Default |
Reported when |
image-missing |
error |
an image file does not exist |
image-case-mismatch |
error |
an image path only resolves on case-insensitive file systems |
image-missing-alt |
warning |
an image has no alt text |
structure
| Rule |
Default |
Reported when |
include-missing |
error |
an included or imported file does not exist |
heading-empty |
error |
a heading has no text |
heading-multiple-h1 |
warning |
a page has more than one H1 (the title counts as the H1) |
heading-skipped-level |
warning |
a heading skips a level, for example H2 to H4 |
title-duplicate |
warning |
another page has the same title |
code-missing-language |
warning |
a fenced code block has no language |
content-todo |
warning |
a leftover TODO, FIXME or placeholder marker is found (see check.todo_patterns) |
| Rule |
Default |
Reported when |
frontmatter-invalid |
error |
front matter does not parse |
frontmatter-schema |
error |
front matter does not match the JSON Schema in check.schema |
frontmatter-missing-title |
warning |
a page has no title in front matter or an H1 |
tag-alias |
warning |
a tag is an alias; use the preferred term from the vocabulary |
tag-not-in-vocabulary |
warning |
a tag is not in the controlled vocabulary |
drafts
| Rule |
Default |
Reported when |
draft-unverified-claims |
error |
a draft marked ready still has unverified claims in its claims.json (see Draft cited pages) |