From 047510fd65300f82137063719e4b75d91573644b Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Sat, 25 Apr 2026 14:16:56 +0200 Subject: [PATCH 1/2] Allow markdown linkchecker to be called from the github website. --- .github/workflows/markdown_link_check.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/markdown_link_check.yml b/.github/workflows/markdown_link_check.yml index 03f19a8..2ce3f7c 100644 --- a/.github/workflows/markdown_link_check.yml +++ b/.github/workflows/markdown_link_check.yml @@ -10,6 +10,9 @@ on: # Allow this workflow to be called from other repositories. workflow_call: + # Allow this workflow to be called from the GitHub UI. + workflow_dispatch: + jobs: markdown-link-check: runs-on: ubuntu-22.04 From 992d40c3ad0fea9a678d2c927a8c89341b691a9c Mon Sep 17 00:00:00 2001 From: Hugo Buddelmeijer Date: Sat, 25 Apr 2026 14:17:26 +0200 Subject: [PATCH 2/2] Proper regex with .*... --- .github/workflows/markdown_link_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/markdown_link_check.yml b/.github/workflows/markdown_link_check.yml index 2ce3f7c..a3bf4b9 100644 --- a/.github/workflows/markdown_link_check.yml +++ b/.github/workflows/markdown_link_check.yml @@ -29,6 +29,6 @@ jobs: # Generate default configuration file if it doesn't exist. # - github.com URL's can lead to rate limiting errors. # - stsci.edu URL's can lead to connection refused errors. - if [ ! -f .linkspector.yml ] ; then printf "dirs:\n - ./\nignorePatterns:\n - pattern: '^https://www.gnu.org/licenses.*$'\n - pattern: '^https://jwst-docs.stsci.edu/$'\n" > .linkspector.yml ; fi + if [ ! -f .linkspector.yml ] ; then printf "dirs:\n - ./\nignorePatterns:\n - pattern: '^https://www.gnu.org/licenses.*$'\n - pattern: '^https://jwst-docs.stsci.edu/.*$'\n" > .linkspector.yml ; fi # Run the check. linkspector check