Skip to content

Commit

Permalink
Add link checker command
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <[email protected]>
  • Loading branch information
lucperkins committed Feb 21, 2020
1 parent 2665deb commit 5ed6c70
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ node_modules/
# Hugo-generated assets
public/
resources/

# Link checker artifacts
bin/
tmp/
4 changes: 4 additions & 0 deletions .htmltest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DirectoryPath: public
IgnoreDirectoryMissingTrailingSlash: true
CheckExternal: false
IgnoreAltMissing: true
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ preview-build:
--buildDrafts \
--buildFuture \
--minify

link-checker-setup:
curl https://htmltest.wjdp.uk | bash

run-link-checker:
bin/htmltest

check-links: link-checker-setup run-link-checker

0 comments on commit 5ed6c70

Please sign in to comment.