Usage

bash
holydocs 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

OptionDescriptionDefault
--dir <path>Project directory containing docs.json, docs.yaml, docs.yml, or mint.jsonCurrent directory / nearest project root

Examples

Basic Validation

bash
holydocs check

Output:

text
Validating documentation config... Config: /path/to/docs.json✓ Configuration is valid!

Config with Warnings

bash
holydocs check

Example warning output:

text
Validating 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

bash
holydocs check --dir ./docs

Checks Performed

Errors

These fail the command:

  • Missing name
  • Missing colors or colors.primary
  • Invalid colors.primary hex value
  • Missing navigation
  • navigation.groups or navigation.tabs is 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 .mdx or .md
  • logo is a relative string path instead of an absolute path or URL
  • A redirect entry is missing source or destination

Supported Config Files

The command checks the first config file it finds in the target directory:

  1. docs.json
  2. docs.yaml
  3. docs.yml
  4. mint.json

Run holydocs check before holydocs deploy. For link validation inside page content, run holydocs links as a second step.

Ask a question... ⌘I