reed check
Validate the config and content without building. Always offline.
reed check [--dir <path>] [--content <path>] [--strict-tokens] [--strict-components]Validates docs.json against the schema and runs static checks over your content — page
references resolve, every content page is listed in navigation, components exist and
carry their required props, referenced assets are present, and no redirect shadows a page
or a generated file. It does not build the site.
Prerequisites: none. check is unconditionally offline. It never invokes the
dependency-install step, so it needs no prior reed prefetch, no package manager, and no
network. That makes it the right check to run on every pull request, in any sandbox.
Options
Section titled “Options”--dirpathProject root. Defaults to the current directory.
--contentpathContent directory. Defaults to <dir>/content.
--strict-tokensbooleandefault: falseEscalate every warning except DS-D* to an error.
--strict-componentsbooleandefault: falseEscalate DS-D* design-system warnings to errors.
The two strict flags cover disjoint sets of diagnostics and compose — pass both to escalate everything, or either alone to escalate just that category.
Diagnostics
Section titled “Diagnostics”Problems are reported as DS-* codes. A representative one:
✗ [DS-S03] content file "api/limits.mdx"'s "ParamField" is missing required prop "name" (contract: ParamField)A component name outside Reed’s catalog reports DS-S06, so a typo fails here rather
than rendering as literal text on a published page.
A few checks report plain names instead. A content file that navigation does not list
reports content-page-not-in-navigation, so it fails here rather than partway through a
build:
✗ [content-page-not-in-navigation] content file "guides/old-draft.mdx" is not referenced by any navigation entry; a page must be listed in docs.json navigation to be builtA redirects entry whose source is a page’s route or a generated file’s path reports
redirect-source-conflict. The diagnostics reference lists
every code.
Relationship to build
Section titled “Relationship to build”check and build share one validation path — schema parse, template resolution,
per-token diagnostics, static checks — so they cannot disagree about whether a project is
valid. A green check means build will not fail for any of these reasons.