From accffa8d1bb8e85e906c39057c71f6a26e68bee2 Mon Sep 17 00:00:00 2001
From: Tim Allen <screwtape@froup.com>
Date: Mon, 7 Aug 2017 22:12:24 +1000
Subject: [PATCH] A tool to check our docs for broken links.

Annoyingly, mkdocs won't validate inter- or intra-document links,
so we'll need to use a third-party tool instead.
---
 docs/checklinks.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 docs/checklinks.sh

diff --git a/docs/checklinks.sh b/docs/checklinks.sh
new file mode 100644
index 00000000..469a730b
--- /dev/null
+++ b/docs/checklinks.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# This uses the official W3C link-checker tool:
+#
+#   https://github.com/w3c/link-checker
+#
+checklink \
+	--summary \
+	--broken \
+	--location=http://127.0.0.1:8000/ \
+	--exclude 'github.com|board.byuu.org' \
+	http://127.0.0.1:8000/