Thresholds¶
Setting appropriate thresholds helps enforce documentation quality without being overly restrictive.
Recommended Thresholds¶
Technical Documentation¶
User Guides¶
API Reference¶
Content-Specific Overrides¶
Different content types need different thresholds:
thresholds:
max_grade: 10
overrides:
- pattern: "docs/api/**"
thresholds:
max_grade: 14
- pattern: "docs/tutorials/**"
thresholds:
max_grade: 8
When to Skip Checks¶
Set min_words to skip readability checks for very short documents:
Documents with fewer than 100 words won't fail readability checks (the formulas are unreliable with sparse content).
Line Limits¶
Use max_lines to encourage document splitting:
Long documents should typically be split into focused sections.