From 1f22caec97f0df878ad5fa1577e4081cef76f7e8 Mon Sep 17 00:00:00 2001 From: IanCa Date: Fri, 21 Jun 2024 19:18:30 -0500 Subject: [PATCH 1/2] Add link checker --- .github/workflows/links.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/links.yaml diff --git a/.github/workflows/links.yaml b/.github/workflows/links.yaml new file mode 100644 index 0000000..fada9f8 --- /dev/null +++ b/.github/workflows/links.yaml @@ -0,0 +1,27 @@ +--- +name: Lychee link checker + +on: + push: + branches: [develop] + pull_request: + branches: [develop] + +permissions: + contents: read + +jobs: + codespell: + name: Lychee link checker + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Link Checker + id: lychee + 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 343536d00da8649b5566446955200e2c3523d5c2 Mon Sep 17 00:00:00 2001 From: IanCa Date: Mon, 24 Jun 2024 11:28:43 -0500 Subject: [PATCH 2/2] Make link checker manual, move exclude 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) +