mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
fb49e123bb
* create Mintlify style rules * mintlify-ify rules
1.4 KiB
1.4 KiB
Vale Configuration for Mintlify Docs
This directory contains the Vale linting configuration for Mintlify documentation.
Philosophy
Start simple and grow incrementally as needs emerge.
Vale files
.vale.ini- Main configuration filestyles/config/vocabularies/Mintlify/- Mintlify-specific termsstyles/Mintlify/- Style rules derived from the Google developer documentation style and customized for Mintlify
When to add vocabulary
- Mintlify terms - New components, features, platform-specific concepts
- Frequent false positives - Any terms that repeatedly trigger 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