diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml new file mode 100644 index 0000000000..161f7e5211 --- /dev/null +++ b/.github/workflows/links.yml @@ -0,0 +1,12 @@ +name: LinkChecker + +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: + config-file: '.link_config.json' diff --git a/.gitignore b/.gitignore index 3d9addd7ef..6d57fb3afd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +node_modules/ +package.json +yarn.lock +docker-compose.yml + /build/ .vscode/ src/*/include/case.fpp diff --git a/.link_config.json b/.link_config.json new file mode 100644 index 0000000000..dbe3c4bf8a --- /dev/null +++ b/.link_config.json @@ -0,0 +1,32 @@ +{ + "ignorePatterns": [ + { + "pattern": "^http://example.net" + } + ], + "replacementPatterns": [ + { + "pattern": "^.attachments", + "replacement": "file://some/conventional/folder/.attachments" + }, + { + "pattern": "^/", + "replacement": "{{BASEURL}}/" + } + ], + "httpHeaders": [ + { + "urls": ["https://example.com"], + "headers": { + "Authorization": "Basic Zm9vOmJhcg==", + "Foo": "Bar" + } + } + ], + "timeout": "20s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [200, 206] +} +