diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index c7c6f9f1..4d736e77 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -21,7 +21,8 @@ jobs: uses: lycheeverse/lychee-action@v2 with: fail: false - args: --accept 403,503 **/*.html + # Configuration is now specified in lychee.toml file + args: **/*.html - name: Create Issue From File if: steps.lychee.outputs.exit_code != 0 uses: peter-evans/create-issue-from-file@v5 diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 00000000..f9fb2ce2 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,10 @@ +# Lychee link checker configuration +# For more configuration options, see: https://github.com/lycheeverse/lychee + +# Accept specific HTTP status codes that are normally treated as errors +accept = [403, 503] + +# Exclude paths from checking +# This excludes the webpack-macros.html file which contains unprocessed Jinja2 template variables +# like {{ pathto() }} that cause false positives in link checking +exclude_path = ["_static/webpack-macros.html"] \ No newline at end of file