From 5b3d0239d8d569dbbad943dcd516231b18671ca9 Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Wed, 29 May 2024 16:50:06 +0200 Subject: [PATCH 1/9] added link checker --- .github/link-checker-config.json | 13 +++++++++++++ .github/workflows/link-checker.yml | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/link-checker-config.json create mode 100644 .github/workflows/link-checker.yml diff --git a/.github/link-checker-config.json b/.github/link-checker-config.json new file mode 100644 index 00000000..07aa05c4 --- /dev/null +++ b/.github/link-checker-config.json @@ -0,0 +1,13 @@ +{ + "projectBaseUrl":"${https://github.com/ESMValGroup/ESMValTool_Tutorial}", + "ignorePatterns": [ + { + "pattern": "^http://example.net" + } + ], + "timeout": "20s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [200, 206] +} diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml new file mode 100644 index 00000000..f8da4492 --- /dev/null +++ b/.github/workflows/link-checker.yml @@ -0,0 +1,15 @@ +name: Check Markdown links + +on: push + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'yes' + config-file: 'link-checker-config.json' + file-path: './README.md, ./LICENSE.md, ./CONTRIBUTING.md, ./CODE_OF_CONDUCT.md, ./aio.md, ./index.md, ./reference.md, ./setup.md' From 0f32a849052478bbad69469724003d0ecc1f066b Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Thu, 30 May 2024 14:23:43 +0200 Subject: [PATCH 2/9] trial for added link checker --- .github/link-checker-config.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/link-checker-config.json b/.github/link-checker-config.json index 07aa05c4..c38d26a6 100644 --- a/.github/link-checker-config.json +++ b/.github/link-checker-config.json @@ -5,6 +5,30 @@ "pattern": "^http://example.net" } ], + "replacementPatterns": [ + { + "pattern": "^.attachments", + "replacement": "file://some/conventional/folder/.attachments" + }, + { + "pattern": "^/", + "replacement": "{{BASEURL}}/" + }, + { + "pattern": "%20", + "replacement": "-", + "global": true + } + ], + "httpHeaders": [ + { + "urls": ["https://example.com"], + "headers": { + "Authorization": "Basic Zm9vOmJhcg==", + "Foo": "Bar" + } + } + ], "timeout": "20s", "retryOn429": true, "retryCount": 5, From 669b2031dab4d6795030b3b46bcbc2f2835c56e9 Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Thu, 30 May 2024 14:36:44 +0200 Subject: [PATCH 3/9] trial for added link checker --- .github/{link-checker-config.json => link_checker_config.json} | 0 .github/workflows/link-checker.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename .github/{link-checker-config.json => link_checker_config.json} (100%) diff --git a/.github/link-checker-config.json b/.github/link_checker_config.json similarity index 100% rename from .github/link-checker-config.json rename to .github/link_checker_config.json diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index f8da4492..7843bdcb 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -11,5 +11,5 @@ jobs: with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' - config-file: 'link-checker-config.json' + config-file: 'link_checker_config.json' file-path: './README.md, ./LICENSE.md, ./CONTRIBUTING.md, ./CODE_OF_CONDUCT.md, ./aio.md, ./index.md, ./reference.md, ./setup.md' From 6098f02ef882dd9f1688090f85f5a0877e7129b7 Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Mon, 3 Jun 2024 12:24:48 +0200 Subject: [PATCH 4/9] updated link checker --- .github/workflows/{link-checker.yml => action.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{link-checker.yml => action.yml} (100%) diff --git a/.github/workflows/link-checker.yml b/.github/workflows/action.yml similarity index 100% rename from .github/workflows/link-checker.yml rename to .github/workflows/action.yml From a2a21943e1b3f66d2905b3bb25aae5f4645aa39a Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Mon, 3 Jun 2024 12:31:08 +0200 Subject: [PATCH 5/9] updated link checker --- .github/workflows/link_checker_config.json | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/link_checker_config.json diff --git a/.github/workflows/link_checker_config.json b/.github/workflows/link_checker_config.json new file mode 100644 index 00000000..c38d26a6 --- /dev/null +++ b/.github/workflows/link_checker_config.json @@ -0,0 +1,37 @@ +{ + "projectBaseUrl":"${https://github.com/ESMValGroup/ESMValTool_Tutorial}", + "ignorePatterns": [ + { + "pattern": "^http://example.net" + } + ], + "replacementPatterns": [ + { + "pattern": "^.attachments", + "replacement": "file://some/conventional/folder/.attachments" + }, + { + "pattern": "^/", + "replacement": "{{BASEURL}}/" + }, + { + "pattern": "%20", + "replacement": "-", + "global": true + } + ], + "httpHeaders": [ + { + "urls": ["https://example.com"], + "headers": { + "Authorization": "Basic Zm9vOmJhcg==", + "Foo": "Bar" + } + } + ], + "timeout": "20s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [200, 206] +} From 10775fd25ed59f41d664bf8f4e1580f2c472b362 Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Mon, 3 Jun 2024 12:38:24 +0200 Subject: [PATCH 6/9] updated link checker --- .github/workflows/link_checker_config.json | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 .github/workflows/link_checker_config.json diff --git a/.github/workflows/link_checker_config.json b/.github/workflows/link_checker_config.json deleted file mode 100644 index c38d26a6..00000000 --- a/.github/workflows/link_checker_config.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "projectBaseUrl":"${https://github.com/ESMValGroup/ESMValTool_Tutorial}", - "ignorePatterns": [ - { - "pattern": "^http://example.net" - } - ], - "replacementPatterns": [ - { - "pattern": "^.attachments", - "replacement": "file://some/conventional/folder/.attachments" - }, - { - "pattern": "^/", - "replacement": "{{BASEURL}}/" - }, - { - "pattern": "%20", - "replacement": "-", - "global": true - } - ], - "httpHeaders": [ - { - "urls": ["https://example.com"], - "headers": { - "Authorization": "Basic Zm9vOmJhcg==", - "Foo": "Bar" - } - } - ], - "timeout": "20s", - "retryOn429": true, - "retryCount": 5, - "fallbackRetryDelay": "30s", - "aliveStatusCodes": [200, 206] -} From f9dd95e01b836ac3d86a2bc6b64ca7aadda11451 Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Mon, 3 Jun 2024 13:04:06 +0200 Subject: [PATCH 7/9] updated link checker --- .github/link_checker_config.json | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/.github/link_checker_config.json b/.github/link_checker_config.json index c38d26a6..f9a9dd8a 100644 --- a/.github/link_checker_config.json +++ b/.github/link_checker_config.json @@ -1,34 +1,10 @@ { - "projectBaseUrl":"${https://github.com/ESMValGroup/ESMValTool_Tutorial}", + "projectBaseUrl": "https://github.com/ESMValGroup/ESMValTool_Tutorial", "ignorePatterns": [ { "pattern": "^http://example.net" } ], - "replacementPatterns": [ - { - "pattern": "^.attachments", - "replacement": "file://some/conventional/folder/.attachments" - }, - { - "pattern": "^/", - "replacement": "{{BASEURL}}/" - }, - { - "pattern": "%20", - "replacement": "-", - "global": true - } - ], - "httpHeaders": [ - { - "urls": ["https://example.com"], - "headers": { - "Authorization": "Basic Zm9vOmJhcg==", - "Foo": "Bar" - } - } - ], "timeout": "20s", "retryOn429": true, "retryCount": 5, From cf24cc5e1e2d306f9492a8bf505ba99ff1493042 Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Mon, 3 Jun 2024 13:11:17 +0200 Subject: [PATCH 8/9] updated link checker --- .github/link_checker_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/link_checker_config.json b/.github/link_checker_config.json index f9a9dd8a..a12cc8ca 100644 --- a/.github/link_checker_config.json +++ b/.github/link_checker_config.json @@ -1,5 +1,5 @@ { - "projectBaseUrl": "https://github.com/ESMValGroup/ESMValTool_Tutorial", + "projectBaseUrl": "https://github.com/ESMValGroup/ESMValTool_Tutorial/.github", "ignorePatterns": [ { "pattern": "^http://example.net" From 2a57f59e52534c68279082d85e851a0cb0531867 Mon Sep 17 00:00:00 2001 From: Gulcin G Date: Mon, 3 Jun 2024 13:16:01 +0200 Subject: [PATCH 9/9] updated link checker --- .github/link_checker_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/link_checker_config.json b/.github/link_checker_config.json index a12cc8ca..570e6317 100644 --- a/.github/link_checker_config.json +++ b/.github/link_checker_config.json @@ -1,5 +1,5 @@ { - "projectBaseUrl": "https://github.com/ESMValGroup/ESMValTool_Tutorial/.github", + "projectBaseUrl": "https://github.com/ESMValGroup/ESMValTool_Tutorial/", "ignorePatterns": [ { "pattern": "^http://example.net"