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 will never provide a failure status, even if there is an error or suggestions. - A
Blockinglevel check will provide a failure status if there is an error or suggestions.
Available CI checks
Broken links
Similar to how the CLI link checker works on your local machine, the broken link CI check automatically searches your documentation content for broken internal links. To see the results of this check, visit GitHub’s check results page for a specific commit.Configuration options
The broken links check supports additional options:- Check anchors: Enable to validate anchor links like
/path/to/page#anchor. When enabled, the check verifies that the target anchor exists on the destination page. - Check snippets: Enable to validate snippet references in your documentation. When enabled, the check verifies that all referenced snippet files exist.
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.
Default vale.ini configuration
Default Vale vocabulary
styles/config/vocabularies/Mintlify directory with accept.txt and reject.txt files.
accept.txt: Words that should be ignored by the Vale linter. For example, product names or uncommon terms.reject.txt: Words that should be flagged 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
For security reasons, absolute
stylesPath, or stylesPath which include .. values aren’t supported.Use relative paths and include the stylesPath in your repository.Packages
Vale supports a range of packages, which can be used to check for spelling and style errors. Any packages you include in your repository under the correctstylesPath are automatically installed and used in your Vale configuration.
For packages not included in your repository, you may specify any packages from the Vale package registry, and they’re automatically downloaded and used in your Vale configuration.
For security reasons, automatically downloading packages that aren’t from the Vale package registry is not supported.
Vale with MDX
MDX native support requires Vale 3.10.0 or later. Check your Vale version with
vale --version.{/* ... */}: