From 3e59dc32d5621f93dd6b7be989e873b097bcea6c Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Fri, 18 Mar 2022 12:51:13 +0100 Subject: Run third-party markup checkers after deployment --- BACKLOG.md | 5 ----- check | 21 +++++++++++++++++++++ deploy | 2 ++ 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100755 check diff --git a/BACKLOG.md b/BACKLOG.md index ce0b438..62d1861 100644 --- a/BACKLOG.md +++ b/BACKLOG.md @@ -2,11 +2,6 @@ ## Hosting -* Regularly check HTTPS security using Mozilla's [Observatory](https://observatory.mozilla.org/) (includes the services below) - * https://hstspreload.org/?domain=skreutz.com - * https://securityheaders.com/?q=www.skreutz.com&hide=on&followRedirects=on - * https://www.ssllabs.com/ssltest/analyze.html?d=www.skreutz.com&hideResults=on&latest -* Regularly validate HTML, CSS, RSS, and Atom using [W3C tools](https://w3c.github.io/developers/tools/) * Configure custom 404 page using httpd.conf(5) location not found rule (supported by OpenBSD 7.1) * Consider to disable logging (and advertise this on the about page) diff --git a/check b/check new file mode 100755 index 0000000..6428077 --- /dev/null +++ b/check @@ -0,0 +1,21 @@ +#! /bin/sh + +# Run third-party markup checkers. +# See W3C Developer Tools at https://w3c.github.io/developers/tools/ + +open() { + xdg-open "$@" >/dev/null 2>&1 & +} + +# 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" diff --git a/deploy b/deploy index bd260ac..21602a5 100755 --- a/deploy +++ b/deploy @@ -54,3 +54,5 @@ curl \ --output /dev/null \ http://www.bing.com/ping?sitemap=https%3A%2F%2Fwww.skreutz.com/sitemap.xml \ || ( >&2 printf "error: failed to submit live sitemap to bing.com\\n" ) + +/bin/sh "${root}/check" -- cgit v1.2.3