commit
24da7f8883
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue