mirror of
https://github.com/testthedocs/awesome-docs.git
synced 2026-07-15 22:02:42 -05:00
Move topic pages to section index routes, standardize card-based content presentation, and simplify metadata typing while improving local search indexing for EnhancedLink entries. Refresh theme styling and replace unstable external links to keep metadata builds reliable.
3.7 KiB
3.7 KiB
GitHub Actions
GitHub Actions workflows and marketplace actions specifically designed for documentation, content validation, and quality assurance.
Content Validation Actions
Language & Grammar
- Alex Action - Catch insensitive, inconsiderate writing
- Vale - Syntax-aware linter for prose
- Spellcheck Action - Spell checking for documentation
- Run misspell with reviewdog - Misspelling detection with review comments
Documentation Format Validation
- DOCtor-RST - Validate reStructuredText files
- Markdown linting (various actions available for markdown validation)
Content Generation & Management
Table of Contents
- TOC Generator - Automatically generate table of contents for README files
Issue Management
- TODO to Issue Action - Convert TODO comments in code to GitHub issues
Performance & Quality
Website Performance
- Lighthouse CI Action - Run Lighthouse performance audits on documentation sites
Setting Up Documentation Workflows
Basic Validation Pipeline
Here's an example workflow that combines multiple documentation quality checks:
name: Documentation Quality Check
on:
pull_request:
paths:
- '**.md'
- 'docs/**'
jobs:
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Vale Linting
uses: errata-ai/vale-action@reviewdog
with:
files: docs
- name: Spell Check
uses: streetsidesoftware/cspell-action@v2
with:
files: "docs/**/*.md"
- name: Alex Inclusive Language Check
uses: theashraf/alex-action@v1.0.0
with:
path: 'docs'
Advanced Documentation Pipeline
For more comprehensive documentation workflows:
- Content Validation: Spell checking, grammar checking, inclusive language
- Link Checking: Validate internal and external links
- Format Validation: Markdown linting, structure validation
- Site Building: Test documentation site builds
- Performance Testing: Lighthouse audits for documentation sites
- Accessibility Testing: Automated accessibility checks
Best Practices
Workflow Configuration
- Path-based triggers: Only run documentation checks when documentation files change
- Parallel jobs: Run different validation checks in parallel for faster feedback
- Review integration: Use reviewdog for inline comments on pull requests
- Conditional execution: Skip certain checks for draft PRs or specific branches
Quality Gates
- Set up required status checks for documentation validation
- Use branch protection rules to enforce documentation quality
- Configure different validation levels for different types of content
Integration Tips
- Combine with existing CI/CD pipelines
- Use caching to speed up action execution
- Configure notifications for documentation quality issues
- Set up automated fixes where possible (e.g., spelling corrections)
Related Tools
For more comprehensive documentation quality assurance, see our Quality Assurance section which includes additional tools that can be integrated into GitHub Actions workflows.
These actions help maintain high-quality documentation by automating validation, ensuring consistency, and catching issues early in the development process.