Skip to content

Commit

Permalink
chore: Check links with lychee
Browse files Browse the repository at this point in the history
Adds an npm script for running lychee against a locally running site.
  • Loading branch information
scsmithr committed Jan 20, 2024
1 parent 8699c63 commit 6e8d09f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lychee.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Exclude google font links since the roots 404, but are still used for
# preconnecting.
exclude = [
"https://fonts.gstatic.com/",
"https://fonts.googleapis.com/"
]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"format": "prettier --check .",
"format:fix": "prettier --write .",
"lint": "markdownlint-cli2 \"**/*.{md,mdx}\" \"!node_modules\" \"!_site\"",
"lint:fix": "markdownlint-cli2-fix \"**/*.{md,mdx}\" \"!node_modules\" \"!_site\""
"lint:fix": "markdownlint-cli2-fix \"**/*.{md,mdx}\" \"!node_modules\" \"!_site\"",
"links": "lychee -v http://localhost:4000"
},
"devDependencies": {
"cspell": "^6.31.1",
Expand Down

0 comments on commit 6e8d09f

Please sign in to comment.