Merge pull request #3 from ericrasch/release/v2.1.2 #12
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
| name: Documentation Check | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '**.md' | |
| - '**.sh' | |
| - 'wp-symlinks' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '**.md' | |
| - '**.sh' | |
| - 'wp-symlinks' | |
| jobs: | |
| check-links: | |
| name: Check Documentation Links | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check Markdown links | |
| uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
| with: | |
| use-quiet-mode: 'yes' | |
| use-verbose-mode: 'yes' | |
| config-file: '.github/workflows/markdown-link-check-config.json' | |
| check-consistency: | |
| name: Check Documentation Consistency | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check script references in docs | |
| run: | | |
| echo "Checking for outdated script references..." | |
| # Check if any docs still reference the old script name (excluding changelog entries) | |
| if grep -r "enhanced-reset_wp_symlinks.sh" *.md scripts/ --exclude-dir=.history --exclude-dir=.claude 2>/dev/null | grep -v "Renamed.*enhanced-reset_wp_symlinks.sh.*generate-wp-symlinks.sh"; then | |
| echo "❌ Found outdated script references" | |
| exit 1 | |
| fi | |
| # Check if all scripts mentioned in README exist | |
| scripts_in_readme=$(grep -o '\./[^[:space:]]*\.sh' README.md | sort | uniq) | |
| for script in $scripts_in_readme; do | |
| if [[ ! -f "$script" ]]; then | |
| echo "❌ Script mentioned in README does not exist: $script" | |
| exit 1 | |
| fi | |
| done | |
| echo "✅ Documentation consistency check passed" |