diff --git a/.link-check-config.json b/.link-check-config.json new file mode 100644 index 00000000..7c0bf9a0 --- /dev/null +++ b/.link-check-config.json @@ -0,0 +1,40 @@ +{ + "ignorePatterns": [ + { + "pattern": "^content.*$" + }, + { + "pattern": "^\/.*$" + }, + { + "pattern": "^https://source.redhat.com" + }, + { + "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." + }, + { + "pattern": "^https://grafana.app-sre." + } + ] +} \ 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/