Files
wehub-resource-sync 91e75e620b
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:19 +08:00

81 lines
3.1 KiB
YAML

name: "CI: Check Docs Links"
on:
pull_request:
paths:
- "docs/content/**"
- "docs/src/**"
- "docs/package.json"
- "docs/scripts/check-links.ts"
- "docs/scripts/check-hygiene.ts"
jobs:
check-internal-links:
name: Check Internal Links (next-validate-link)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install
working-directory: docs
- name: Check internal links
run: pnpm docs:check-links
working-directory: docs
- name: Check docs hygiene
run: pnpm docs:check-hygiene
working-directory: docs
- name: Show help if check failed
if: failure()
run: |
echo ""
echo "╔══════════════════════════════════════════════════════════════════╗"
echo "║ Broken Documentation Links! ║"
echo "╠══════════════════════════════════════════════════════════════════╣"
echo "║ ║"
echo "║ One or more internal links in the documentation are broken. ║"
echo "║ ║"
echo "║ To find broken links locally, run from the docs/ directory: ║"
echo "║ ║"
echo "║ pnpm docs:check-links ║"
echo "║ ║"
echo "╚══════════════════════════════════════════════════════════════════╝"
check-external-links:
name: Check External Links (lychee)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check external links
uses: lycheeverse/lychee-action@v2
with:
args: >-
--verbose
--no-progress
--accept 100..=399
--scheme https
--scheme http
--root-dir ${{ github.workspace }}/docs/content/docs
--exclude 'localhost'
--exclude '127\.0\.0\.1'
--exclude 'example\.com'
--exclude 'cua\.ai'
--exclude 'platform\.openai\.com'
'./docs/content/**/*.mdx'
token: ${{ secrets.GITHUB_TOKEN }}
fail: true