Vale is an open-source linting tool that helps maintain consistent writing style and catch common errors in documentation.
Use Vale with your Fern docs to automatically check for style issues and enforce writing guidelines. Vale runs locally or in CI/CD to catch issues before they’re published.
Create a .vale.ini file in your repository root
Create a .vale.ini file and add the following to it so Vale parses MDX files as Markdown:
To disable Vale in specific sections of your Fern docs, use Vale comments wrapped in MDX syntax. This is particularly useful for code blocks, where Vale might flag variable names or code syntax as style violations.
Consider integrating Vale into your workflow so it runs automatically for all contributors:
This helps enforce consistent style standards across your documentation team without requiring manual Vale runs.