Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.4 KB

LINKCHECK.md

File metadata and controls

34 lines (28 loc) · 1.4 KB

Installing for Link Checking

Mac OS X Instructions

_LIBS="$( xcrun --sdk macosx --show-sdk-path )/usr/include/"
bundle config build.nokogiri \
            "--use-system-libraries \
            --with-xml2-include=$_LIBS/libxml2 \
            --with-xslt-include=$_LIBS/libxslt \
            --with-exslt-include=$_LIBS/libexslt"
  • Then, you can do bundle install and it will work
  • But, then, it failed because I have moved _site to _0site to get it out of the middle of my editable files.
    • So, I had to change the commands in my Makefile to:
bundle exec htmlproofer ./_0site

Linux Instructions

Makefile Modifications for Link Checking

Once link checking is installed, here is the target for link checking in the Makefile:

checklinks: 
	bundle exec htmlproofer ./_0site