From f3c4a948bc0876e788f73c90196974d439816886 Mon Sep 17 00:00:00 2001 From: IanCa Date: Fri, 21 Jun 2024 16:29:29 -0500 Subject: [PATCH 1/5] Try adding link checker v1 --- .github/workflows/codespell.yaml | 2 +- .github/workflows/links.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/links.yaml diff --git a/.github/workflows/codespell.yaml b/.github/workflows/codespell.yaml index 3deac45..9c6511f 100644 --- a/.github/workflows/codespell.yaml +++ b/.github/workflows/codespell.yaml @@ -17,6 +17,6 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Codespell uses: codespell-project/actions-codespell@v2 \ No newline at end of file diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml new file mode 100644 index 0000000..79f1dec --- /dev/null +++ b/.github/workflows/links.yaml @@ -0,0 +1,24 @@ +--- +name: Codespell + +on: + push: + branches: [develop] + pull_request: + branches: [develop] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + uses: lycheeverse/lychee-action@v1 \ No newline at end of file From 657664a21f73b251adf509f91314bd60e4e11608 Mon Sep 17 00:00:00 2001 From: IanCa Date: Fri, 21 Jun 2024 16:39:02 -0500 Subject: [PATCH 2/5] update link params and name --- .github/workflows/links.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index 79f1dec..81ee6a4 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -1,5 +1,5 @@ --- -name: Codespell +name: Lychee link checker on: push: @@ -21,4 +21,7 @@ jobs: - name: Link Checker id: lychee - uses: lycheeverse/lychee-action@v1 \ No newline at end of file + uses: lycheeverse/lychee-action@v1 + with: + # Check all markdown, html and reStructuredText files in repo (default) + args: --base . --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude (_anchor|-anchor) \ No newline at end of file From a616a3f0a44a5d217ccfcaa71cdfda788758a7da Mon Sep 17 00:00:00 2001 From: IanCa Date: Fri, 21 Jun 2024 16:40:42 -0500 Subject: [PATCH 3/5] tweak param --- .github/workflows/links.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index 81ee6a4..66ec138 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -24,4 +24,4 @@ jobs: uses: lycheeverse/lychee-action@v1 with: # Check all markdown, html and reStructuredText files in repo (default) - args: --base . --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude (_anchor|-anchor) \ No newline at end of file + args: --base . --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude '(_anchor|-anchor)' \ No newline at end of file From fe28c5a8c39490d63e71f8cf807e29a90fc8d17f Mon Sep 17 00:00:00 2001 From: IanCa Date: Fri, 21 Jun 2024 16:49:05 -0500 Subject: [PATCH 4/5] Fix name in workflow --- .github/workflows/links.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index 66ec138..fada9f8 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -12,7 +12,7 @@ permissions: jobs: codespell: - name: Check for spelling errors + name: Lychee link checker runs-on: ubuntu-latest steps: From c60d95735d1cfa834e19a32d21d80191339b5381 Mon Sep 17 00:00:00 2001 From: IanCa Date: Mon, 24 Jun 2024 11:20:35 -0500 Subject: [PATCH 5/5] Move ignored links to file --- .github/workflows/links.yaml | 7 ++----- .lycheeignore | 5 +++++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 .lycheeignore diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml index fada9f8..b1e9891 100644 --- a/.github/workflows/links.yaml +++ b/.github/workflows/links.yaml @@ -2,10 +2,7 @@ name: Lychee link checker on: - push: - branches: [develop] - pull_request: - branches: [develop] + workflow_dispatch: permissions: contents: read @@ -24,4 +21,4 @@ jobs: uses: lycheeverse/lychee-action@v1 with: # Check all markdown, html and reStructuredText files in repo (default) - args: --base . --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' --exclude '(_anchor|-anchor)' \ No newline at end of file + args: --base . --verbose --no-progress './**/*.md' './**/*.html' './**/*.rst' \ No newline at end of file diff --git a/.lycheeignore b/.lycheeignore new file mode 100644 index 0000000..0b18600 --- /dev/null +++ b/.lycheeignore @@ -0,0 +1,5 @@ + +https://www.sciencedirect.com/science/article/pii/S1053811921010387 +https://www.sciencedirect.com/science/article/pii/S0010945221001106 +(_anchor|-anchor) +