From 7baa9ed51871e985b8aee606b2b7c5840df749b9 Mon Sep 17 00:00:00 2001 From: thaddmt <68032955+thaddmt@users.noreply.github.com> Date: Tue, 10 Oct 2023 09:34:42 -0700 Subject: [PATCH] chore: add more ignored links (#4522) * chore: add more ignored links * ignore all w3 links --- docs/scripts/util/checkLink.ts | 6 +++++- docs/src/data/ignoredLinks.ts | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/scripts/util/checkLink.ts b/docs/scripts/util/checkLink.ts index 3c3bf7d354c..ee7a9e27f98 100644 --- a/docs/scripts/util/checkLink.ts +++ b/docs/scripts/util/checkLink.ts @@ -95,7 +95,11 @@ export async function checkLink( `⚠️[WARNING...] page #${pageIdx} link #${linkIdx} "${tagName}" tag "${tagText}" doesn't have a href.` ); res({ ...linkData, statusCode: 0 }); - } else if (IGNORED_LINKS.includes(href) || requestedUrl.has(href)) { + } else if ( + IGNORED_LINKS.includes(href) || + requestedUrl.has(href) || + (href as string).includes('www.w3.org') + ) { res({ ...linkData, statusCode: 0 }); } else { const { get } = href.includes('https:') ? https : http; diff --git a/docs/src/data/ignoredLinks.ts b/docs/src/data/ignoredLinks.ts index 8d99d75b3bd..fa2609a2901 100644 --- a/docs/src/data/ignoredLinks.ts +++ b/docs/src/data/ignoredLinks.ts @@ -25,4 +25,12 @@ export const IGNORED_LINKS = [ 'https://tfhub.dev/tensorflow/tfjs-model/blazeface/1/default/1/model.json?tfjs-format=file', // 302 to a google cdn 'https://cdn.liveness.rekognition.amazonaws.com/face-detection/tensorflow/tfjs-backend-wasm/3.11.0/', // 404 this is the intentional path as the tfjs library will append the correct file name 'https://cdn.liveness.rekognition.amazonaws.com', + 'https://www.figma.com/community/file/1047600760128127424', + 'https://www.figma.com/community/plugin/1040722185526429545/AWS-Amplify-Theme-Editor', + 'https://www.w3.org/WAI/ARIA/apg/patterns/tabs/', + 'https://www.w3.org/WAI/standards-guidelines/act/rules/0ssw9k/proposed/', + 'https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/#aria_lh_step3', + 'https://www.w3.org/WAI/ARIA/apg/patterns/alert/examples/alert/', + 'https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/', + 'https://www.w3.org/WAI/ARIA/apg/patterns/breadcrumb/', ];