From fb8ec76c02aa730a22c097a035d85b90a29ebc24 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 25 Aug 2025 02:32:36 +0000 Subject: [PATCH 1/4] Initial plan From 8f79a95529d03ced5fb409a82eced5ee7bbe35a6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 25 Aug 2025 02:39:37 +0000 Subject: [PATCH 2/4] Fix link checker by excluding webpack-macros.html template file Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com> --- .github/workflows/linkcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index c7c6f9f1..a49963c5 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -21,7 +21,7 @@ jobs: uses: lycheeverse/lychee-action@v2 with: fail: false - args: --accept 403,503 **/*.html + args: --accept 403,503 --exclude-path "_static/webpack-macros.html" **/*.html - name: Create Issue From File if: steps.lychee.outputs.exit_code != 0 uses: peter-evans/create-issue-from-file@v5 From 14642791645fd97ab607fdce4de03d04065aac08 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 25 Aug 2025 02:41:18 +0000 Subject: [PATCH 3/4] Add explanatory comment for webpack-macros.html exclusion Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com> --- .github/workflows/linkcheck.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index a49963c5..00c17dc0 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -21,6 +21,8 @@ jobs: uses: lycheeverse/lychee-action@v2 with: fail: false + # Exclude webpack-macros.html as it contains unprocessed Jinja2 template variables + # like {{ pathto() }} which cause false positives in link checking args: --accept 403,503 --exclude-path "_static/webpack-macros.html" **/*.html - name: Create Issue From File if: steps.lychee.outputs.exit_code != 0 From 41923a0f2b31c3d0c41a2143b4307a543a1b8cd6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 25 Aug 2025 02:45:30 +0000 Subject: [PATCH 4/4] Move lychee configuration to lychee.toml file Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com> --- .github/workflows/linkcheck.yml | 5 ++--- lychee.toml | 10 ++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 lychee.toml diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 00c17dc0..4d736e77 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -21,9 +21,8 @@ jobs: uses: lycheeverse/lychee-action@v2 with: fail: false - # Exclude webpack-macros.html as it contains unprocessed Jinja2 template variables - # like {{ pathto() }} which cause false positives in link checking - args: --accept 403,503 --exclude-path "_static/webpack-macros.html" **/*.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