From e732cda1ed7939df016f7c37d43b7dc2f0d9c2af Mon Sep 17 00:00:00 2001 From: Nathan Weeks <1800812+nathanweeks@users.noreply.github.com> Date: Thu, 26 Dec 2024 17:11:45 -0500 Subject: [PATCH] Try to prevent HTTP 406 errors instead of simply ignoring them --- .github/workflows/build-deploy.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 53822d40..53b8ec36 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -117,7 +117,7 @@ jobs: - name: run htmlproofer # ignore HTTP status 301 (htmlproofer strips trailing slashes) run: | - htmlproofer --allow-missing-href --ignore-missing-alt --ignore-files '/\/uikit\/tests\//' --ignore-status-codes '301,403,406,503' --cache '{"timeframe": {"external": "30d"}}' --ignore-url '/germplasm-map.legumeinfo.org/,/pgrc-rpc.agr.gc.ca\/gringlobal\/search/' + htmlproofer --allow-missing-href --ignore-missing-alt --ignore-files '/\/uikit\/tests\//' --ignore-status-codes '301,403,406,503' --cache '{"timeframe": {"external": "30d"}}' --ignore-url '/germplasm-map.legumeinfo.org/,/pgrc-rpc.agr.gc.ca\/gringlobal\/search/' --typhoeus='{"headers":{"Accept":"*/*"}}' # https://github.com/actions/cache/blob/main/save/README.md#always-save-cache - uses: actions/cache/save@v4 id: save-cache-htmlproofer diff --git a/Makefile b/Makefile index 58857ecc..c529322f 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ yamllint: htmlproofer: bundle exec jekyll build --profile --trace - bundle exec htmlproofer $(HTMLPROOFER_ARGS) --ignore-status-codes 301,406,429,503 --ignore-files '/\/uikit\/tests\//' --ignore-url '/germplasm-map.legumeinfo.org/,/pgrc-rpc.agr.gc.ca\/gringlobal\/search/' --cache '{"timeframe": {"external": "30d"}}' --log-level debug ./_site + bundle exec htmlproofer $(HTMLPROOFER_ARGS) --ignore-status-codes 301,429,503 --ignore-files '/\/uikit\/tests\//' --ignore-url '/germplasm-map.legumeinfo.org/,/pgrc-rpc.agr.gc.ca\/gringlobal\/search/' --cache '{"timeframe": {"external": "30d"}}' --typhoeus='{"headers":{"Accept":"*/*"}}' --log-level debug ./_site pa11y: setup if ! { command -v pa11y-ci || npm ls pa11y-ci ; } >/dev/null 2>&1; then npm install $(NPM_INSTALL_OPTIONS) pa11y-ci@${PA11YCI_VERSION}; fi