Skip to content

Install htmltest using it's install script once the next release becomes available #459

@chalin

Description

@chalin

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:

website/Makefile

Lines 22 to 37 in 2a33bf5

# 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

Metadata

Metadata

Assignees

Labels

infrastructureCategorizes issue or PR as related to site infrastructure.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions