Skip to content

Commit 159cec9

Browse files
committed
Update link checker to ignore images.
1 parent 97fe529 commit 159cec9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/checkLinks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ for (const [name, raw] of docFiles) {
180180
if (!match.groups) continue;
181181
const [page, anchor] = match.groups?.link.split("#") ?? [];
182182
if (!validLinks.has(page)) {
183+
// Automatically ignore links with "image/" as the prefix, since the link checker is not designed to validate images.
184+
if (page.startsWith("images/")) continue;
185+
183186
ownResults.push({
184187
title: `Base url ${chalk.blueBright(page)} does not exist`,
185188
startLine: lineNum + 1,

0 commit comments

Comments
 (0)