-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check links in the user guide (#1172)
- Loading branch information
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.hugo_build.lock | ||
/public | ||
resources/ | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
DirectoryPath: public | ||
CheckDoctype: false # Sadly, this is false only because of `static/google*.html` | ||
IgnoreAltMissing: true # FIXME | ||
IgnoreDirectoryMissingTrailingSlash: true # FIXME | ||
IgnoreDirs: [_print] # FIXME | ||
IgnoreEmptyHref: true # FIXME | ||
IgnoreInternalEmptyHash: true # FIXME | ||
IgnoreInternalURLs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
HTMLTEST_DIR=tmp | ||
HTMLTEST?=htmltest # Specify as make arg if different | ||
HTMLTEST_ARGS?=--skip-external | ||
|
||
# Use $(HTMLTEST) in PATH, if available; otherwise, we'll get a copy | ||
ifeq (, $(shell which $(HTMLTEST))) | ||
override HTMLTEST=$(HTMLTEST_DIR)/bin/htmltest | ||
ifeq (, $(shell which $(HTMLTEST))) | ||
GET_LINK_CHECKER_IF_NEEDED=get-link-checker | ||
endif | ||
endif | ||
|
||
check-links: $(GET_LINK_CHECKER_IF_NEEDED) | ||
$(HTMLTEST) $(HTMLTEST_ARGS) | ||
|
||
clean: | ||
rm -rf $(HTMLTEST_DIR) public/* resources | ||
|
||
get-link-checker: | ||
rm -Rf $(HTMLTEST_DIR)/bin | ||
curl https://htmltest.wjdp.uk | bash -s -- -b $(HTMLTEST_DIR)/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters