Skip to content

Commit

Permalink
Try to prevent HTTP 406 errors instead of simply ignoring them
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanweeks committed Dec 26, 2024
1 parent 2bc73a7 commit e732cda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e732cda

Please sign in to comment.