Merge pull request #4641 from alexpls/patch-1

Merge pull request 4641
This commit is contained in:
jekyllbot 2016-03-07 13:56:51 -08:00
commit 24da7f8883
1 changed files with 5 additions and 5 deletions

View File

@ -31,7 +31,7 @@ does ensure things are built properly.
When testing Jekyll output, there is no better tool than [html-proofer][2]. When testing Jekyll output, there is no better tool than [html-proofer][2].
This tool checks your resulting site to ensure all links and images exist. This tool checks your resulting site to ensure all links and images exist.
Utilize it either with the convenient `htmlproof` command-line executable, Utilize it either with the convenient `htmlproofer` command-line executable,
or write a Ruby script which utilizes the gem. or write a Ruby script which utilizes the gem.
Save the commands you want to run and succeed in a file: `./script/cibuild` Save the commands you want to run and succeed in a file: `./script/cibuild`
@ -43,17 +43,17 @@ Save the commands you want to run and succeed in a file: `./script/cibuild`
set -e # halt script on error set -e # halt script on error
bundle exec jekyll build bundle exec jekyll build
bundle exec htmlproof ./_site bundle exec htmlproofer ./_site
{% endhighlight %} {% endhighlight %}
Some options can be specified via command-line switches. Check out the Some options can be specified via command-line switches. Check out the
`html-proofer` README for more information about these switches, or run `html-proofer` README for more information about these switches, or run
`htmlproof --help` locally. `htmlproofer --help` locally.
For example to avoid testing external sites, use this command: For example to avoid testing external sites, use this command:
{% highlight bash %} {% highlight bash %}
$ bundle exec htmlproof ./_site --disable-external $ bundle exec htmlproofer ./_site --disable-external
{% endhighlight %} {% endhighlight %}
### The HTML Proofer Library ### The HTML Proofer Library
@ -154,7 +154,7 @@ incantation here directly:
{% highlight yaml %} {% highlight yaml %}
install: gem install jekyll html-proofer install: gem install jekyll html-proofer
script: jekyll build && htmlproof ./_site script: jekyll build && htmlproofer ./_site
{% endhighlight %} {% endhighlight %}
The `script` directive can be absolutely any valid shell command. The `script` directive can be absolutely any valid shell command.