Skip to content

Commit

Permalink
chore: update script
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Feb 19, 2023
1 parent 2b7de23 commit b590f78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/package.json
Expand Up @@ -26,6 +26,7 @@
"@11ty/eleventy-navigation": "^0.3.2",
"@11ty/eleventy-plugin-rss": "^1.1.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2",
"@munter/tap-render": "^0.2.0",
"@types/markdown-it": "^12.2.3",
"algoliasearch": "^4.12.1",
"cross-env": "^7.0.3",
Expand Down
8 changes: 4 additions & 4 deletions docs/tools/validate-links.js
Expand Up @@ -3,9 +3,9 @@ const TapRender = require("@munter/tap-render");
const spot = require("tap-spot");
const hyperlink = require("hyperlink");

const t = new TapRender();
const tapRenderInstance = new TapRender();

t.pipe(spot()).pipe(process.stdout);
tapRenderInstance.pipe(spot()).pipe(process.stdout);

const skipPatterns = [
"https://",
Expand All @@ -16,7 +16,7 @@ const skipPatterns = [
"/team",
"/donate",
"/docs/latest",
"_site/rules/null"
`src="null"`,
];

const skipFilter = (report) =>
Expand All @@ -37,7 +37,7 @@ const skipFilter = (report) =>
concurrency: 25,
skipFilter,
},
t
tapRenderInstance
);
} catch (err) {
console.log(err.stack);
Expand Down

0 comments on commit b590f78

Please sign in to comment.