Add link checker

Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
lucperkins 2020-02-27 14:58:17 -08:00
parent 345d48ce77
commit f1a02f83be
3 changed files with 21 additions and 0 deletions

4
.gitignore vendored
View File

@ -19,3 +19,7 @@ docs.helm.sh/
# JetBrains IDEs (GoLand, IntelliJ, ...) config folder
.idea
# Link checker artifacts
bin/
tmp/

4
.htmltest.yml Normal file
View File

@ -0,0 +1,4 @@
DirectoryPath: app
IgnoreDirectoryMissingTrailingSlash: true
CheckExternal: false
IgnoreAltMissing: true

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
clean:
rm -rf app resources
build:
hugo --minify
set-up-link-checker:
curl https://raw.githubusercontent.com/wjdp/htmltest/master/godownloader.sh | bash
run-link-checker:
bin/htmltest
check-links: clean build set-up-link-checker run-link-checker