Pro and Enterprise plans include CI checks for GitHub repositories.
Installation
To begin, follow the steps on the GitHub page.Configuration
Configure the CI checks enabled for a deployment by navigating to the Add-ons page of your dashboard. Enable the checks that you want to run. When enabling checks, you can choose to run them at aWarning or Blocking level.
- A
Warninglevel check never provides a failure status, even if there is an error or suggestions. - A
Blockinglevel check provides a failure status if there is an error or suggestions.
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.Configuration
If you have a.vale.ini file in the root content directory of your deployment, the Vale CI check uses that configuration file and any configuration files in your specified StylesPath.
If you don’t have a Vale config file, the default configuration automatically loads.
The default configuration runs in Mintlify’s build environment, where
StylesPath = /app/styles points to an internal directory. If you create your own .vale.ini file, use a relative path within your repository, such as StylesPath = styles.For security reasons, you cannot use absolute paths or paths containing .. in your configuration files.Default vale.ini configuration
Default Vale vocabulary
styles/config/vocabularies/Mintlify directory with accept.txt and reject.txt files.
accept.txt: Words that the Vale linter should ignore. For example, product names or uncommon terms.reject.txt: Words that the Vale linter should flag as errors. For example, jargon or words that are not appropriate for the tone of your documentation.
Example Vale file structure
Example monorepo Vale file structure
Packages
Vale supports a range of packages that check for spelling and style errors. Any packages you include in your repository under the correctStylesPath 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.
For security reasons, you cannot automatically download packages that aren’t from the Vale package registry.
Vale with MDX
MDX native support requires Vale 3.10.0 or later. Check your Vale version with
vale --version.{/* ... */}: