To check links you'll need htmltest@Head in your path, unless you have go installed, then npm run check-links will fetch and build the required version for your. (That is, the current release 0.14.0 won't work.)
Otherwise, you can let Netlify check links for you as part of preview builds.
This issue is a reminder to update the Makefile to revert to using the htmltest install script once a new release (>0.14) becomes available.
Context:
|
# Until htmltext >0.14.x is released, get and build our own from source: |
|
get-link-checker: |
|
rm -Rf $(HTMLTEST_DIR) |
|
mkdir -p $(HTMLTEST_DIR)/bin && \ |
|
cd $(HTMLTEST_DIR) && \ |
|
git clone --depth=1 https://github.com/wjdp/htmltest.git && \ |
|
( \ |
|
cd htmltest && \ |
|
./build.sh && \ |
|
cp bin/htmltest ../bin \ |
|
) |
|
|
|
# Once htmltext >0.14.x is released, replace the get-and-build code above with this: |
|
# get-link-checker: |
|
# rm -Rf $(HTMLTEST_DIR)/bin |
|
# curl https://htmltest.wjdp.uk | bash -s -- -b $(HTMLTEST_DIR)/bin |
To check links you'll need htmltest@Head in your path, unless you have
goinstalled, thennpm run check-linkswill fetch and build the required version for your. (That is, the current release 0.14.0 won't work.)Otherwise, you can let Netlify check links for you as part of preview builds.
This issue is a reminder to update the
Makefileto revert to using the htmltest install script once a new release (>0.14) becomes available.Context:
website/Makefile
Lines 22 to 37 in 2a33bf5