Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit 6e8d09f

Browse files
committed
chore: Check links with lychee
Adds an npm script for running lychee against a locally running site.
1 parent 8699c63 commit 6e8d09f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lychee.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Exclude google font links since the roots 404, but are still used for
2+
# preconnecting.
3+
exclude = [
4+
"https://fonts.gstatic.com/",
5+
"https://fonts.googleapis.com/"
6+
]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"format": "prettier --check .",
99
"format:fix": "prettier --write .",
1010
"lint": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!node_modules\" \"!_site\"",
11-
"lint:fix": "markdownlint-cli2-fix \"**/*.{md,mdx}\" \"!node_modules\" \"!_site\""
11+
"lint:fix": "markdownlint-cli2-fix \"**/*.{md,mdx}\" \"!node_modules\" \"!_site\"",
12+
"links": "lychee -v http://localhost:4000"
1213
},
1314
"devDependencies": {
1415
"cspell": "^6.31.1",

0 commit comments

Comments
 (0)