Skip to content

docs(ai-cloud): add ClusterMAX reference to production path intro #282

docs(ai-cloud): add ClusterMAX reference to production path intro

docs(ai-cloud): add ClusterMAX reference to production path intro #282

name: Validate MDX Link Suffixes
on:
pull_request:
branches: [main]
paths:
- 'vcluster/**/*.mdx'
- 'vcluster_versioned_docs/**/*.mdx'
- 'scripts/find-spa-broken-links.py'
workflow_dispatch:
jobs:
validate-mdx-links:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Scan main docs for bare relative links
run: python3 scripts/find-spa-broken-links.py vcluster
# Only the newest versioned folder is enforced. Older versions predate
# the fix and contain pre-existing bare links that would fail CI.
# Each release cut produces a clean snapshot of vcluster/ (already
# enforced above), so the latest version is automatically picked up
# without workflow edits.
- name: Find latest versioned docs folder
id: latest-version
run: |
latest=$(ls -d vcluster_versioned_docs/version-* | sort -V | tail -1)
echo "path=$latest" >> "$GITHUB_OUTPUT"
echo "Scanning $latest"
- name: Scan latest versioned docs for bare relative links
run: python3 scripts/find-spa-broken-links.py "${{ steps.latest-version.outputs.path }}"