Skip to content

Commit 0b63ee3

Browse files
btiernayclaude
andcommitted
Focus link checker on auth4genai docs only
Changes: - Disable main docs checking (commented out for now) - Only check auth4genai docs against https://auth0.com/ai/docs - Accept 429 (rate limit) as valid status code - Simplified failure check to only auth4genai output This reduces noise and focuses on the actively developed auth4genai documentation. Main docs can be re-enabled later. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c7cd413 commit 0b63ee3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/link-check.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,21 @@ jobs:
4848
# npm ci
4949
# npm run docs:build
5050

51-
- name: Check main docs links
52-
id: lychee-main
53-
uses: lycheeverse/lychee-action@v2
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
with:
57-
args: >
58-
--verbose
59-
--no-progress
60-
--base-url ${{ inputs.base_url || 'https://auth0.com' }}
61-
--accept 200..=299,302
62-
--exclude-path '../LICENSE'
63-
main/**/*.md
64-
main/**/*.mdx
65-
# Main docs: paths like /docs/... resolve to https://auth0.com/docs/...
51+
# TODO: Re-enable main docs checking later
52+
# - name: Check main docs links
53+
# id: lychee-main
54+
# uses: lycheeverse/lychee-action@v2
55+
# env:
56+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
# with:
58+
# args: >
59+
# --verbose
60+
# --no-progress
61+
# --base-url ${{ inputs.base_url || 'https://auth0.com' }}
62+
# --accept 200..=299,302,429
63+
# --exclude-path '../LICENSE'
64+
# main/**/*.md
65+
# main/**/*.mdx
6666

6767
- name: Check auth4genai docs links
6868
id: lychee-auth4genai
@@ -74,19 +74,19 @@ jobs:
7474
--verbose
7575
--no-progress
7676
--base-url https://auth0.com/ai/docs
77-
--accept 200..=299,302
77+
--accept 200..=299,302,429
7878
--exclude-path '.vale'
7979
auth4genai/**/*.md
8080
auth4genai/**/*.mdx
8181
# Auth4GenAI docs: paths like /intro/... resolve to https://auth0.com/ai/docs/intro/...
82+
# Accept 429 to handle rate limiting on auth0.com
8283

8384
# For now this only warns so it does not block merges while you tune ignores.
8485
# Once the noise is under control, delete this step so Lychee failures break CI.
8586
- name: Warn on failures instead of failing CI
86-
if: steps.lychee-main.outputs.exit_code != 0 || steps.lychee-auth4genai.outputs.exit_code != 0
87+
if: steps.lychee-auth4genai.outputs.exit_code != 0
8788
run: |
8889
echo "Lychee found broken links."
89-
echo "Main docs exit code: ${{ steps.lychee-main.outputs.exit_code }}"
9090
echo "Auth4GenAI docs exit code: ${{ steps.lychee-auth4genai.outputs.exit_code }}"
9191
echo "Check the Lychee step logs above for details."
9292
exit 0

0 commit comments

Comments
 (0)