From b417500d95bca76ec7032ae3696ee89d4011161b Mon Sep 17 00:00:00 2001 From: Jason Plumb Date: Mon, 30 Jun 2025 11:04:13 -0700 Subject: [PATCH 1/2] add config file for the markdown checker --- .../workflows/reusable-markdown-link-check.yml | 7 +------ lychee.toml | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 lychee.toml diff --git a/.github/workflows/reusable-markdown-link-check.yml b/.github/workflows/reusable-markdown-link-check.yml index 36de638d8b9..5225a3f5a18 100644 --- a/.github/workflows/reusable-markdown-link-check.yml +++ b/.github/workflows/reusable-markdown-link-check.yml @@ -14,11 +14,6 @@ jobs: - uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1 with: - # excluding links to pull requests and issues is done for performance args: > - --include-fragments - --exclude "^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$" - --max-retries 6 - --retry-wait-time 10 - --max-concurrency 1 + --config ./lychee.toml . diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 00000000000..a8a31bd663a --- /dev/null +++ b/lychee.toml @@ -0,0 +1,17 @@ +timeout = 30 +retry_wait_time = 10 +max_retries = 6 +max_concurrency = 1 + +# Stealth +user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0" + +# Check fragments in links +include_fragments = true + +# excluding links to pull requests and issues is done for performance +exclude = [ + "^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$" +] + + From cff5820b86b4c7afbcb6f907dfc8d0c142a8e589 Mon Sep 17 00:00:00 2001 From: jason plumb <75337021+breedx-splk@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:26:48 -0700 Subject: [PATCH 2/2] Update lychee.toml Co-authored-by: Trask Stalnaker --- lychee.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/lychee.toml b/lychee.toml index a8a31bd663a..983be337c01 100644 --- a/lychee.toml +++ b/lychee.toml @@ -3,9 +3,6 @@ retry_wait_time = 10 max_retries = 6 max_concurrency = 1 -# Stealth -user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0" - # Check fragments in links include_fragments = true