diff --git a/.github/workflows/check_links.yml b/.github/workflows/check_links.yml index 2bb651c26..e02a1acde 100644 --- a/.github/workflows/check_links.yml +++ b/.github/workflows/check_links.yml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4 - name: Check links from Markdown file - run: ./scripts/check_links/markdown.sh + run: ./scripts/check_links/index.sh name: Check links diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index b5021b79d..efd32a05b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -23,7 +23,7 @@ jobs: run: ./scripts/lint/markdown.sh - name: Check links from Markdown file - run: ./scripts/check_links/markdown.sh + run: ./scripts/check_links/index.sh name: macOS diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 4ebdfd8ff..c12064975 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -20,7 +20,7 @@ jobs: run: ./scripts/lint/markdown.sh - name: Check links from Markdown file - run: ./scripts/check_links/markdown.sh + run: ./scripts/check_links/index.sh name: Ubuntu diff --git a/scripts/check_links/markdown_configs.json b/scripts/check_links/configs.json similarity index 87% rename from scripts/check_links/markdown_configs.json rename to scripts/check_links/configs.json index 01e3770ad..844813d61 100644 --- a/scripts/check_links/markdown_configs.json +++ b/scripts/check_links/configs.json @@ -1,12 +1,12 @@ { "httpHeaders": [ { - "urls": [ - "https://help.github.com" - ], "headers": { "Accept-Encoding": "br, gzip, deflate" - } + }, + "urls": [ + "https://help.github.com" + ] } ] } diff --git a/scripts/check_links/markdown.sh b/scripts/check_links/index.sh similarity index 89% rename from scripts/check_links/markdown.sh rename to scripts/check_links/index.sh index d776a5cb5..5518bc28e 100755 --- a/scripts/check_links/markdown.sh +++ b/scripts/check_links/index.sh @@ -13,7 +13,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")/../.." \ check_links() ( npx markdown-link-check@3.12.2 \ - --config ./scripts/check_links/markdown_configs.json \ + --config ./scripts/check_links/configs.json \ --quiet \ --retry \ "$1" diff --git a/scripts/lint/markdown.sh b/scripts/lint/markdown.sh index 13f3a96f0..b7cb007e3 100755 --- a/scripts/lint/markdown.sh +++ b/scripts/lint/markdown.sh @@ -12,7 +12,7 @@ cd "$(dirname "${BASH_SOURCE[0]}")/../.." \ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - lint() ( - npx markdownlint-cli@0.41.0 "$1" + npx markdownlint-cli@0.42.0 "$1" ) check_markdown_files \