forked from bitcoin-core/bitcoincore.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (16 loc) · 822 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: build test
preview:
bundle exec jekyll clean
bundle exec jekyll serve --future --drafts --unpublished --incremental
build:
bundle exec jekyll clean
bundle exec jekyll build --future --drafts --unpublished
test: test-fast test-slow
test-slow:
## Check for malformed HTML and broken internal links
bash -c "set -o pipefail ; bundle exec htmlproofer --check-html --disable-external --url-ignore '/^\/bin/.*/' ./_site | cat"
## Check that links on the /en/download page point to the separately-stored binaries in /bin
contrib/qa/test-binary-availability.sh && echo "SUCCESS checking URLs for binaries"
test-fast:
## Check for broken Markdown reference-style links that are displayed in text unchanged, e.g. [broken][broken link]
! find _site/ -name '*.html' | xargs grep ']\[' | grep -v skip-test | grep .