The Datadog Documentation team implements, maintains, and owns a style guide utilizing the Vale Linter. This repository contains a set of linting rules for Vale based on the Documentation Style Guide.
- Clone this repository.
- Install Vale with
brew install vale(macOS) orchoco install vale(Windows). - Set the
StylesPathparameter tostyles/Datadogin your.vale.inifile. - Run
vale .from the root folder of the repository, or specify a file to lint on usingvale /path/to/some/directory.
Rules are stored in YAML files, and you can set Docshtml to lint on HTML, and Docsmd to lint on Markdown files in your .vale.ini file. Make sure all files are lowercase.
For example, this gender.yml rule raises an error when Vale detects a gendered pronoun in a Markdown file:
extends: existence
message: "Use a gender-neutral pronoun instead of '%s'."
link: "https://github.com/DataDog/documentation/blob/master/CONTRIBUTING.md#gender"
level: error
ignorecase: true
tokens:
- he/sheThe files in this repository contain settings for the Vale linter (defined in .vale.ini) and style rules published by the Datadog Docs team (defined in styles/Datadog). These can be used as a GitHub Action or locally.
- Add the example linting.yml file to your repository's
.github/workflowsfolder. - (Optional) Update
linting.ymlstyles and config files as necessary. - (Optional) Add your custom
.vale.inifile to your repository's root directory.
Example of linting with GitHub Actions:

- Install Vale locally.
- Optional for VS Code users:
- Install
vale-vscodethrough the Marketplace. - Set
vale.core.useCLIto true in the Extension Settings (Preferences > Extensions > Vale > Use CLI). - Restart VS Code.
- Install
- Download the latest release of the source code.
- Unzip the file to your local repository's
.github/stylesfolder. - Add a .vale.ini file to your repository's root directory.
- Update your
.gitignore:# Vale .github/styles # required if the repo uses GitHub Actions .vale.ini # optional
Example of local linting with VS Code:

Code—including sample code—in this repository is licensed under the Apache 2.0 license.