Skip to content

Commit 87acc83

Browse files
btiernayclaude
andcommitted
Fix path remapping for auth4genai docs
Add --remap to correctly resolve absolute paths in auth4genai docs: - /intro/... → https://auth0.com/ai/docs/intro/... - /get-started/... → https://auth0.com/ai/docs/get-started/... The negative lookahead ensures we don't remap paths that already start with /docs/ or /ai/ (like external auth0.com/docs links). This fixes 404s where paths were incorrectly resolving to https://auth0.com/* instead of https://auth0.com/ai/docs/* 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 0b63ee3 commit 87acc83

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/link-check.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,13 @@ jobs:
7474
--verbose
7575
--no-progress
7676
--base-url https://auth0.com/ai/docs
77+
--remap 'https://auth0.com/(?!docs/|ai/) https://auth0.com/ai/docs/'
7778
--accept 200..=299,302,429
7879
--exclude-path '.vale'
7980
auth4genai/**/*.md
8081
auth4genai/**/*.mdx
81-
# Auth4GenAI docs: paths like /intro/... resolve to https://auth0.com/ai/docs/intro/...
82+
# Auth4GenAI docs: Remap auth0.com/* paths to auth0.com/ai/docs/*
83+
# (except paths already starting with /docs/ or /ai/)
8284
# Accept 429 to handle rate limiting on auth0.com
8385

8486
# For now this only warns so it does not block merges while you tune ignores.

0 commit comments

Comments
 (0)