CI checks
Automate documentation quality checks in your CI/CD pipeline with broken link detection, linting, grammar validation, and build previews.
Use CI checks to lint your docs for errors and provide warnings before you deploy. Mintlify CI checks run on pull requests against a configured deployment branch.
Installation
To begin, follow the steps on the GitHub page.
Configuration
Configure the CI checks enabled for a project by navigating to the Site page of your dashboard. Enable the checks that you want to run.
When enabling checks, you can choose to run them at a Warning or Blocking level.
Available CI checks
Broken links
The broken link CI check works like the CLI link checker. It automatically searches your documentation for broken internal links between pages within your site. It does not check external links to other websites.
To see detailed results for broken links on a pull request, click the Checks tab, then click the Mintlify broken links check. The results list any files with broken links found in the pull request.
Vale
Vale is an open source rule-based prose linter which supports a range of document types, including Markdown and MDX. Use Vale to check for consistency of style and tone in your documentation.
Mintlify supports automatically running Vale in a CI check and displaying the results as a check status. The check runs Vale 3.26.0 on the Markdown and MDX files that a pull request adds or modifies. If a pull request doesn’t change any Markdown or MDX files, the check passes without running Vale.
Each Vale result appears as a warning annotation on the line that Vale flags.
Configuration
If you have a .vale.ini file in the root content directory of your project, the Vale CI check uses only that configuration file and the styles in your StylesPath. It doesn’t use the default configuration or the default vocabulary.
Set StylesPath to a relative path to a directory inside your repository, such as StylesPath = styles. If the directory doesn’t exist or is outside your repository, the check fails. If you don’t set StylesPath, the check uses the styles directory in your root content directory.
Section globs in your .vale.ini match page paths relative to your root content directory. For example, an [es/**] section applies to the pages in the es directory.
If a changed page is a symbolic link to a file outside your repository, the check skips the page and lists it in the check’s log.
If you don’t have a Vale config file, the default configuration automatically loads.
The default Vale vocabulary includes the following words.
To add your own vocabulary to the default configuration, create a styles/config/vocabularies/Mintlify directory in your content directory with an accept.txt file, a reject.txt file, or both. This applies only when your project has no .vale.ini file. Mintlify adds your words to its default vocabulary.
Each vocabulary file must be 1 MB or smaller. A larger file fails the check.
Packages
Vale supports a range of packages that check for spelling and style errors. Any packages you include in your repository under the correct StylesPath automatically install and run with your Vale configuration.
For packages not included in your repository, you can specify any packages from the Vale package registry, and they’re automatically downloaded and used in your Vale configuration.
Vale with MDX
The Vale check reads MDX files natively. If you run Vale locally on MDX files, use Vale 3.10.0 or later. Check your Vale version with vale --version.
To use Vale’s in-document comments in MDX files, use MDX-style comments {/* ... */}:
Vale automatically recognizes and respects these comments in MDX files without additional configuration. Use comments to skip lines or sections that you want the linter to ignore.