holydocs check
Validate your HolyDocs config file and navigation references before deploying.
Usage
bashholydocs check [options]
Validates the local docs configuration and warns about common mistakes such as invalid theme values or navigation entries that point at files that do not exist.
Options
| Option | Description | Default |
|---|---|---|
--dir <path> | Project directory containing docs.json, docs.yaml, docs.yml, or mint.json | Current directory / nearest project root |
Examples
Basic Validation
bashholydocs check
Output:
textValidating documentation config... Config: /path/to/docs.json✓ Configuration is valid!
Config with Warnings
bashholydocs check
Example warning output:
textValidating documentation config... Config: /path/to/docs.json1 warning(s): ⚠ Page "guides/setup" referenced in navigation but file not found (guides/setup.mdx)⚠ Configuration is valid with warnings.
Check a Different Directory
bashholydocs check --dir ./docs
Checks Performed
Errors
These fail the command:
- Missing
name - Missing
colorsorcolors.primary - Invalid
colors.primaryhex value - Missing
navigation navigation.groupsornavigation.tabsis not an array- Unknown theme name
- Invalid JSON or YAML syntax
Warnings
These are printed but do not fail the command:
- Navigation references a page that does not exist as
.mdxor.md logois a relative string path instead of an absolute path or URL- A redirect entry is missing
sourceordestination
Supported Config Files
The command checks the first config file it finds in the target directory:
docs.jsondocs.yamldocs.ymlmint.json
Run holydocs check before holydocs deploy. For link validation inside page content, run holydocs links as a second step.