Commit f87e3e99 authored by Ryan Hofschneider's avatar Ryan Hofschneider

Ignore binary files in site.baseurl check

parent 067438ba
......@@ -26,15 +26,15 @@ jobs:
- ./vendor/bundle
key: v2-dependencies-{{ checksum "Gemfile.lock" }}
# Temporarily disable
#- run:
#name: checking internal links
# grep for pages with markdown links to local pages (links with "(/").
- run:
name: checking internal links
# grep for pages with markdown links to local pages (links with "(/"),
# ignoring any binary files.
# if found, fail build with error message (grep returns the opposite
# exit code from what we’re hoping for, so the '!' negates the
# expression to pass/fail the build as expected).
#command: |
# ! (grep -Erl "\(/|href=['\"]/" _pages && echo "ERROR: Internal links must be prefixed with {{site.baseurl}} to work correctly with Federalist Previews. Fix the above pages.")
command: |
! (grep -IErl "\(/|href=['\"]/" _pages && echo "ERROR: Internal links must be prefixed with {{site.baseurl}} to work correctly with Federalist Previews. Fix the above pages.")
- run:
name: build site
command: bundle exec jekyll build
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment