From 6c9575f783ae8fd62800b07eb1e54a356f722fcd Mon Sep 17 00:00:00 2001 From: RunningLeon Date: Tue, 8 Nov 2022 15:44:44 +0800 Subject: [PATCH] add config --- .github/md-link-config.json | 23 +++++++++++++++++++++++ .github/workflows/lint.yml | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/md-link-config.json diff --git a/.github/md-link-config.json b/.github/md-link-config.json new file mode 100644 index 0000000000..e68593a030 --- /dev/null +++ b/.github/md-link-config.json @@ -0,0 +1,23 @@ +{ + "ignorePatterns": [ + { + "pattern": "^https://developer.nvidia.com//" + }, + { + "pattern": "^http://localhost" + } + ], + "httpHeaders": [ + { + "urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"], + "headers": { + "Accept-Encoding": "zstd, br, gzip, deflate" + } + } + ], + "timeout": "20s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [200, 206, 429] +} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 369474e9e5..c3045171ef 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -33,6 +33,7 @@ jobs: use-quiet-mode: 'yes' use-verbose-mode: 'yes' # check-modified-files-only: 'yes' + config-file: '.github/md-link-config.json' folder-path: 'docs/en, docs/zh_cn' file-path: './README.md, ./LICENSE, ./README_zh-CN.md' - name: Check doc link