Skip to content

Commit 599d585

Browse files
brabojclaude
andcommitted
fix: configure lychee with root-dir and exclude-fragment
Add --root-dir to resolve root-relative links (/tutorial-git/...) and --exclude-fragment to skip anchor-only links that lychee cannot verify in static HTML files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 52bd1c9 commit 599d585

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
3333
- name: Check links
3434
uses: lycheeverse/lychee-action@v2
3535
with:
36-
args: --base ${{ github.workspace }}/astro-site/dist astro-site/dist
36+
args: --base ${{ github.workspace }}/astro-site/dist --root-dir ${{ github.workspace }}/astro-site/dist --exclude-fragment astro-site/dist
3737
fail: true

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Check links
4343
uses: lycheeverse/lychee-action@v2
4444
with:
45-
args: --base ${{ github.workspace }}/astro-site/dist astro-site/dist
45+
args: --base ${{ github.workspace }}/astro-site/dist --root-dir ${{ github.workspace }}/astro-site/dist --exclude-fragment astro-site/dist
4646
fail: true
4747

4848
- name: Upload artifact

0 commit comments

Comments
 (0)