summaryrefslogtreecommitdiff
path: root/script/check
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2022-04-28 15:24:06 +0200
committerStefan Kreutz <mail@skreutz.com>2022-04-28 15:24:06 +0200
commit00fd2149d708e13f0e3dbd3a7a1c07b54586ee0e (patch)
tree4d8ac6002ad5bafa4888901591507401be67c610 /script/check
parentac6d78a8d8956d13dc86496a4bb953aee0376538 (diff)
downloadblog-00fd2149d708e13f0e3dbd3a7a1c07b54586ee0e.tar
Run checks before deployment
Diffstat (limited to 'script/check')
-rwxr-xr-xscript/check29
1 files changed, 12 insertions, 17 deletions
diff --git a/script/check b/script/check
index 6428077..a7de23f 100755
--- a/script/check
+++ b/script/check
@@ -1,21 +1,16 @@
#! /bin/sh
-# Run third-party markup checkers.
-# See W3C Developer Tools at https://w3c.github.io/developers/tools/
+set -o errexit
+set -o nounset
+set -o xtrace
-open() {
- xdg-open "$@" >/dev/null 2>&1 &
-}
+cabal v2-run exe:site -- rebuild
-# W3C Nu HTML Checker
-open "https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.skreutz.com%2Fposts%2Funix-domain-socket-forwarding-with-openssh%2F"
-
-# W3C CSS Validator
-open "https://jigsaw.w3.org/css-validator/validator?uri=https%3A%2F%2Fwww.skreutz.com%2F&profile=css3svg&usermedium=all&warning=1&vextwarning=&lang=en"
-
-# W3C Feed Validator
-open "https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.skreutz.com%2Ffeeds%2Fposts.rss"
-open "https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fwww.skreutz.com%2Ffeeds%2Fposts.atom"
-
-# W3C Link Checker
-open "https://validator.w3.org/checklink?uri=https%3A%2F%2Fwww.skreutz.com%2F&hide_type=all&recursive=on&depth=10&check=Check"
+# See also .lycheeignore file.
+lychee \
+ --exclude-link-local \
+ --exclude-loopback \
+ --exclude-mail \
+ --exclude-private \
+ --format detailed \
+ _site/
Generated by cgit. See skreutz.com for my tech blog and contact information.