mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
439c95609d
* Add "Host at /docs" configuration for reverse proxy * Reviewer feedback * fix vale false positives
Vale Configuration for Mintlify Docs
This directory contains the Vale linting configuration for Mintlify documentation.
Philosophy
Start simple and grow incrementally as needs emerge. The current setup uses:
- Core Mintlify-specific vocabulary
- Customized rules from the Google developer documentation style guide
Vale files
.vale.ini- Main configuration filestyles/config/vocabularies/Mintlify/- Mintlify-specific termsstyles/Google/- Google developer documentation style rules customized for Mintlify docs
When to add vocabulary
- Mintlify terms - New components, features, platform-specific concepts
- Frequent false positives - Any terms that repeatedly trigger spelling errors, but shouldn't
Discover new vocabulary
Use the included script to find vocabulary candidates:
# Discover terms from all files
.vale/scripts/discover-vocabulary.sh
# Discover from specific files
.vale/scripts/discover-vocabulary.sh "components/*.mdx"
This script:
- Runs Vale on specified files
- Extracts spelling error suggestions
- Saves results to
.vale/vocabulary-candidates.txt
When to add new rules
- Consistent patterns - The same style issue appears frequently
- High-value, low-noise - Rules that catch problems with minimal false positives
Testing new rules
Before adding a new rule:
- Test locally:
vale path/to/file.mdx - Run on sample files:
vale components/*.mdx - Check false positive rate
- Start with
level: suggestionthen promote towarningorerror