Add linkinator to check for broken links.

Currently only checks for internal links because external links can break at any time. Also, there are hosts that block linkinator.
This commit is contained in:
XhmikosR
2020-02-09 18:30:38 +02:00
parent 56cc8943b5
commit 09fe7564c1
2 changed files with 1695 additions and 1 deletions
+1692
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -17,9 +17,11 @@
"homepage": "https://docs.pi-hole.net/",
"scripts": {
"markdownlint": "markdownlint \"**/*.md\" -i \"**/node_modules/**\"",
"test": "npm run markdownlint"
"linkinator": "linkinator site --recurse --silent --skip \"^(?!http://localhost)\"",
"test": "npm run markdownlint && npm run linkinator"
},
"devDependencies": {
"linkinator": "^2.1.1",
"markdownlint-cli": "^0.23.1"
}
}