Skip to content

Commit 41923a0

Browse files
Copilotmmcky
andcommitted
Move lychee configuration to lychee.toml file
Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
1 parent 1464279 commit 41923a0

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/linkcheck.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ jobs:
2121
uses: lycheeverse/lychee-action@v2
2222
with:
2323
fail: false
24-
# Exclude webpack-macros.html as it contains unprocessed Jinja2 template variables
25-
# like {{ pathto() }} which cause false positives in link checking
26-
args: --accept 403,503 --exclude-path "_static/webpack-macros.html" **/*.html
24+
# Configuration is now specified in lychee.toml file
25+
args: **/*.html
2726
- name: Create Issue From File
2827
if: steps.lychee.outputs.exit_code != 0
2928
uses: peter-evans/create-issue-from-file@v5

lychee.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Lychee link checker configuration
2+
# For more configuration options, see: https://github.com/lycheeverse/lychee
3+
4+
# Accept specific HTTP status codes that are normally treated as errors
5+
accept = [403, 503]
6+
7+
# Exclude paths from checking
8+
# This excludes the webpack-macros.html file which contains unprocessed Jinja2 template variables
9+
# like {{ pathto() }} that cause false positives in link checking
10+
exclude_path = ["_static/webpack-macros.html"]

0 commit comments

Comments
 (0)