Skip to content

Commit 12d5b49

Browse files
lpcoxCopilot
andcommitted
ci: ignore generated site routes in link checks
Resolve root-relative URLs and exclude only the GitHub Pages and documentation-example routes that do not map to repository files. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 7e9efc2 commit 12d5b49

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/lychee.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ exclude = [
99
"^https?://example\\.com",
1010
"^https?://your-",
1111
"^https?://grafana\\.internal",
12+
# Site-root links target the generated GitHub Pages deployment, not repository files
13+
"^file:///gh-aw-firewall/",
14+
# Example site routes in the technical-writer agent instructions
15+
"^file:///(getting-started|guides|reference)/",
1216
# Template variables in workflow .md files and release templates
1317
"%7B",
1418
"\\{\\{",
@@ -47,5 +51,5 @@ max_concurrency = 10
4751
# Don't check mail addresses
4852
include_mail = false
4953

50-
# Resolve site-root links against the deployed GitHub Pages site
51-
base_url = "https://github.github.io"
54+
# Resolve root-relative URLs before excluding deployed GitHub Pages routes
55+
root_dir = "/"

0 commit comments

Comments
 (0)