Skip to content

Commit 3069b03

Browse files
committed
Makefile: add test for broken Markdown reference-style links
1 parent f6faef9 commit 3069b03

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ build:
88
bundle exec jekyll clean
99
bundle exec jekyll build --future --drafts --unpublished
1010

11-
test:
11+
test: test-fast test-slow
12+
13+
test-slow:
14+
## Check for malformed HTML and broken internal links
1215
bundle exec htmlproof --check-html --disable-external --url-ignore '/^\/bin/.*/' ./_site
16+
## Check that links on the /en/download page point to the separately-stored binaries in /bin
1317
contrib/qa/test-binary-availability.sh && echo "SUCCESS checking URLs for binaries"
18+
19+
test-fast:
20+
## Check for broken Markdown reference-style links that are displayed in text unchanged, e.g. [broken][broken link]
21+
! find _site/ -name '*.html' | xargs grep ']\[' | grep -v skip-test | grep .

0 commit comments

Comments
 (0)