-
Notifications
You must be signed in to change notification settings - Fork 28
fix: resolve all vale linting errors #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2de8e3b to
de1dae4
Compare
94ac99d to
638d371
Compare
638d371 to
50ac281
Compare
50ac281 to
21654b1
Compare
4e75dea to
c0b80b5
Compare
0319d8a to
06890b4
Compare
06890b4 to
d83441b
Compare
d83441b to
851ca2f
Compare
851ca2f to
cb9d84d
Compare
e10b822 to
54d3b6f
Compare
54d3b6f to
febc409
Compare
## Summary This commit establishes a comprehensive, maintainable Vale configuration for auth4genai documentation that catches real errors while minimizing false positives in code-heavy and example-driven content. ## Key Changes - **Fixed all 73 Vale linting errors** across 41 files (brand capitalization, spelling, HTML structure) - **Created custom AuthDocs style bundle** with Brands.yml (systematic corrections like github→GitHub) and Spelling.yml (domain-specific ignore list) - **Configured path-based rule overrides** for snippets, components, sample apps, and GitHub integration pages where strict rules generate noise - **Aligned MinAlertLevel = error strategy** with explicit rule disabling instead of severity demotion (clear, maintainable, no false expectations) - **Documented configuration thoroughly** with concrete MDX examples, workflow guidance, and clear explanation of tradeoffs ## Technical Details - StylesPath correctly maps to .vale/styles where all rules and ignore lists live - BasedOnStyles = Vale, AuthDocs applied consistently to MD and MDX files - Vale.Spelling disabled globally; replaced with AuthDocs.Spelling for domain-aware checking - AuthDocs.Brands disabled only on paths where word boundary matching triggers on URLs/domains (documented pattern and escape hatch in README) - IgnoredScopes/SkippedScopes intentionally exclude link text and code blocks to focus on prose ## Vale Status ✓ 0 errors, 0 warnings, 0 suggestions across 137 files ## Maintenance Future updates are purely content-driven: - Add terms to .vale/styles/config/ignore/authdocs.txt as new jargon emerges - Add substitutions to .vale/styles/AuthDocs/Brands.yml for systematic fixes - Adjust path-based disables in .vale.ini for new files with false positives 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
9900ec8 to
f1f1f74
Compare
- Brands.yml: Remove redundant "github" rule (covered by ignorecase) - README.md: Add prominent warning about MDX vs HTML comment syntax - README.md: Add Requirements section with explicit version pins (Vale 3.13.0+, mdx2vast 0.3.0+) - authdocs.txt: Alphabetize terms within each category for consistency - .vale.ini: Add commented opt-in rule for annotations (vale.Annotations) These refinements improve clarity, maintainability, and prevent common mistakes (e.g., using HTML comments in MDX files). No behavior changes. ✓ Vale: 0 errors, 0 warnings, 0 suggestions 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
Reorder entries within each category to achieve strict alphabetical ordering (case-insensitive, preserving original case). This improves machine-friendliness for future maintenance and prevents sorting inconsistencies. Changes only: - Acronyms/technical terms: api/API/APIs now grouped together at start - Auth/project jargon: agentic/Agentic/authorizer/authorizers grouped, Auditability moved to correct position No behavior changes; alphabetization was already partial. ✓ Vale: 0 errors, 0 warnings, 0 suggestions 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
kevlil83
approved these changes
Nov 17, 2025
KarimTantawy5
approved these changes
Nov 17, 2025
Contributor
KarimTantawy5
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes all existing Vale linting errors in the
auth4genaidocs and adds a project-specific Vale configuration for sustainable prose linting.What Changed
Error Fixes
repositores→repositories,ocurrs→occurs).components.mdxwith readable example copy.withInterruptions()andloginWithPopup()for better readability.Configuration Improvements
AuthDocsstyle bundle (Spelling.yml,Brands.yml, ignore list) under.vale/styles..mdxand.mdto a shared style stack (BasedOnStyles = Vale, AuthDocs) for consistent behavior.AuthDocs.Spellingrule backed by an ignore list.AuthDocs.Brandssubstitution rules for brand capitalization and recurring typos.IgnoredScopesandSkippedScopesto keep Vale out of non-prose regions (inline code, URLs, code blocks, etc.)..vale.inito disable noisy brand/spelling checks on:snippets/**/*.mdx)components.mdx)sample-apps.mdx,mcp/sample-apps.mdx)integrations/github.mdx,sdks/**/*.mdx)how-tos/overview.mdx)Documentation Quality
AuthDocs.Brandsby path inBrands.ymlcomments..vale/README.mdexplaining how the configuration works, how to run Vale, and how to extend rules safely.auth4genai/README.mdwith a short Vale section that links to the detailed guide.Result
✅
vale .passes with 0 errors, 0 warnings, 0 suggestions forauth4genai✅ Configuration is documented and focused on real issues instead of code/URL noise
✅ Path-based overrides and ignore lists give a clear, maintainable way to handle future false positives
Test Plan
vale .fromauth4genai– confirms 0 errors for current docs.mdxand.mdfiles.vale/README.mdand inline comments for accuracy and future maintainer guidanceTesting:

https://github.com/auth0/docs-v2/pull/298/checks?check_run_id=55620969589