Skip to content

Conversation

@jackzampolin
Copy link

Summary

  • Adds Vale prose linter configuration based on Source Network brand guidelines
  • Creates 11 custom style rules for branding, terminology, and writing quality
  • Integrates with Makefile (make lint:docs, make lint:docs:strict)
  • Adds GitHub Actions workflow for PR linting

Custom Rules

Error Level (Branding)

  • ProductNames.yml - Enforces correct product names (DefraDB, SourceHub, Orbis, LensVM)
  • TechTerms.yml - Ensures consistent technical terminology (edge-first, Edge AI, etc.)

Warning Level (Style)

  • CorporateSpeak.yml - Flags buzzwords (leverage, synergistic, cutting-edge)
  • GrandioseClaims.yml - Catches unsupported claims ("the best", "leading")
  • SourceStack.yml - Enforces "Source stack" not "Source platform"
  • Acronyms.yml - Requires acronym definitions on first use

Suggestion Level (Quality)

  • Hedging.yml - Removes weak language (simply, just, easily)
  • PreferredTerms.yml - Suggests brand-consistent alternatives
  • Voice.yml - Encourages second-person voice for developer docs
  • Headings.yml - Validates title case in headings
  • NoteFormat.yml - Standardizes note formatting

Usage

# Install Vale (if needed)
make deps:lint-docs

# Sync Vale packages
make vale:sync

# Lint all docs
make lint:docs

# Lint errors only
make lint:docs:strict

Test plan

  • Vale sync works
  • Custom rules are validated
  • Makefile targets work
  • CI workflow runs on PR

🤖 Generated with Claude Code

This adds Vale prose linter configuration for documentation quality
based on Source Network brand guidelines. Includes:

- 11 custom DefraDB style rules for branding, terminology, and voice
- Vocabulary files with approved/rejected terms
- Makefile integration (make lint:docs, make lint:docs:strict)
- GitHub Actions workflow for PR linting
- Updated .gitignore for Vale packages

Custom rules enforce:
- Product name consistency (DefraDB, SourceHub, Orbis, LensVM)
- Technical terminology standards (edge-first, Edge AI, etc.)
- Brand voice (avoid corporate buzzwords, hedging language)
- Second-person voice in developer documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 3, 2025

Deploying docs-source-network with  Cloudflare Pages  Cloudflare Pages

Latest commit: 28efa09
Status: ✅  Deploy successful!
Preview URL: https://258ef71e.docs-source-network.pages.dev
Branch Preview URL: https://jack-docs-vale-linting-setup.docs-source-network.pages.dev

View logs

@jackzampolin
Copy link
Author

WOW
✖ 1488 errors, 2490 warnings and 4113 suggestions in 149 files.

Separate PR for fixing this?

- Fix README typos (Cloudfare → Cloudflare, remove exclamation)
- Disable Vale.Terms (conflicts with custom rules)
- Expand vocabulary with 100+ technical terms
- Add both case variants for code context terms

Reduces errors from 1725 → 646 (63% reduction).
README now passes with 0 errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants