refactor: remove duplicated and dead code found by the codebase slop audit #2019
Workflow file for this run
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: Docs Lint | |
| # Validates Markdown documentation. Runs only when Markdown changes. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "**/*.md" | |
| - ".github/workflows/docs-lint.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "**/*.md" | |
| - ".github/workflows/docs-lint.yml" | |
| permissions: | |
| contents: read | |
| # Cancel superseded runs for the same branch/PR; the latest push is what matters. | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| link-check: | |
| name: Markdown link check (relative links) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Check relative links in Markdown | |
| # --offline checks only on-disk (relative) link targets, so the job is | |
| # deterministic and never flakes on external URLs. Advisory for now | |
| # (fail: false) while the existing docs backlog is cleaned up; flip to | |
| # fail: true once the tree is green. | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| args: --offline --no-progress --include-fragments "**/*.md" | |
| fail: false |