diff --git a/tests/check_links_from_markdown_files.sh b/tests/check_links_from_markdown_files.sh index 541b41c3c..cf34c8e7a 100755 --- a/tests/check_links_from_markdown_files.sh +++ b/tests/check_links_from_markdown_files.sh @@ -6,7 +6,11 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - check_links() { - npx markdown-link-check@^3 --quiet --retry "$file" + npx markdown-link-check@^3 \ + --config markdown-link-check.json \ + --quiet \ + --retry \ + "$file" } check_markdown_files check_links diff --git a/tests/markdown-link-check.json b/tests/markdown-link-check.json new file mode 100644 index 000000000..7a93f9077 --- /dev/null +++ b/tests/markdown-link-check.json @@ -0,0 +1,10 @@ +{ + "httpHeaders": [ + { + "urls": ["https://help.github.com"], + "headers": { + "Accept-Encoding": "br, gzip, deflate" + } + } + ] +}