From f5d85c1f5dc69117a81feb97c64e1eec060b78ad Mon Sep 17 00:00:00 2001 From: gathomas Date: Tue, 6 Jun 2023 14:34:13 +0200 Subject: [PATCH 1/3] add link check --- .link-check-config.json | 16 ++++++++++++++++ .pre-commit-config.yaml | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 .link-check-config.json diff --git a/.link-check-config.json b/.link-check-config.json new file mode 100644 index 00000000..0de2121b --- /dev/null +++ b/.link-check-config.json @@ -0,0 +1,16 @@ +{ + "ignorePatterns": [ + { + "pattern": "^content.*$" + }, + { + "pattern": "^\/.*$" + }, + { + "pattern": "^https://source.redhat.com" + }, + { + "pattern": "^https://rover.redhat.com" + } + ] +} \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e55f038d..aef169ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,3 +21,9 @@ repos: - id: markdownlint-fix types: [markdown] exclude: themes/ + - repo: https://github.com/tcort/markdown-link-check + rev: v3.11.2 + hooks: + - id: markdown-link-check + args: [ '-c .link-check-config.json' ] + exclude: ^themes/ From eb2e3b80f7d905b9380f95cde1d37d104729c259 Mon Sep 17 00:00:00 2001 From: gathomas Date: Mon, 19 Jun 2023 16:43:03 +0200 Subject: [PATCH 2/3] ignore patterns that need vpn --- .link-check-config.json | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.link-check-config.json b/.link-check-config.json index 0de2121b..28606a9e 100644 --- a/.link-check-config.json +++ b/.link-check-config.json @@ -11,6 +11,27 @@ }, { "pattern": "^https://rover.redhat.com" + }, + { + "pattern": "^https://gitlab.cee.redhat.com" + }, + { + "pattern": "^https://grafana.stage.devshift.net" + }, + { + "pattern": "^https://service.pages.redhat.com" + }, + { + "pattern": "^https://post-office.corp.redhat.com" + }, + { + "pattern": "^https://promlens." + }, + { + "pattern": "^https://infogw-proxy.api." + }, + { + "pattern": "^https://cpaas." } ] } \ No newline at end of file From d9ae09ae9f5f5e462f16921d1d06f386aa8e3e3d Mon Sep 17 00:00:00 2001 From: gathomas Date: Wed, 21 Jun 2023 14:10:20 +0200 Subject: [PATCH 3/3] ignore grafana --- .link-check-config.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.link-check-config.json b/.link-check-config.json index 28606a9e..7c0bf9a0 100644 --- a/.link-check-config.json +++ b/.link-check-config.json @@ -32,6 +32,9 @@ }, { "pattern": "^https://cpaas." + }, + { + "pattern": "^https://grafana.app-sre." } ] } \ No newline at end of file