From e08c6595842b65beb621073ba6a2cc4b2b3d64b9 Mon Sep 17 00:00:00 2001 From: Daniel Mundra Date: Tue, 5 Mar 2024 13:44:59 -0800 Subject: [PATCH 1/2] Skipping links that report 429 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0cf47d17..6f583e19 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "pa11y-ci:home": "pa11y-ci http://127.0.0.1:4000", "pa11y-ci:sitemap": "pa11y-ci --sitemap http://127.0.0.1:4000/sitemap.xml --sitemap-find https://accessibility.civicactions.com --sitemap-replace http://127.0.0.1:4000 --sitemap-exclude \"/*.pdf\"", "cypress-tests": "cypress run --browser chrome --headless", - "link-checker": "bundle exec htmlproofer --ignore-status-codes \"999,403,302,0\" --ignore-urls \"/fonts.gstatic.com/\" --enforce_https \"false\" ./_site" + "link-checker": "bundle exec htmlproofer --ignore-status-codes \"999,429,403,302,0\" --ignore-urls \"/fonts.gstatic.com/\" --enforce_https \"false\" ./_site" }, "dependencies": { "simple-jekyll-search": "^1.9.2" From c785120c900fb6f0b64ede2033e9e07558cc963a Mon Sep 17 00:00:00 2001 From: Daniel Mundra Date: Tue, 5 Mar 2024 13:51:23 -0800 Subject: [PATCH 2/2] Ignore external hashes in link checker --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6f583e19..e1e634b9 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "pa11y-ci:home": "pa11y-ci http://127.0.0.1:4000", "pa11y-ci:sitemap": "pa11y-ci --sitemap http://127.0.0.1:4000/sitemap.xml --sitemap-find https://accessibility.civicactions.com --sitemap-replace http://127.0.0.1:4000 --sitemap-exclude \"/*.pdf\"", "cypress-tests": "cypress run --browser chrome --headless", - "link-checker": "bundle exec htmlproofer --ignore-status-codes \"999,429,403,302,0\" --ignore-urls \"/fonts.gstatic.com/\" --enforce_https \"false\" ./_site" + "link-checker": "bundle exec htmlproofer --ignore-status-codes \"999,429,403,302,0\" --ignore-urls \"/fonts.gstatic.com/\" --enforce_https \"false\" --check_external_hash \"false\" ./_site" }, "dependencies": { "simple-jekyll-search": "^1.9.2"