From 2486b79055a3eb09101465c45f9ac690e61cdee0 Mon Sep 17 00:00:00 2001 From: Thadd Trinh Date: Mon, 9 Oct 2023 21:37:01 -0700 Subject: [PATCH] ignore all w3 links --- docs/scripts/util/checkLink.ts | 6 +++++- 1 file changed, 5 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;