Skip to content

Commit

Permalink
HTML Proofer: Relax failures
Browse files Browse the repository at this point in the history
 - The additional "#" anchor that is correctly escaped in the Geomap
demos can be ignored.
 - The query fragment in French text highlight demo appears to have
characters that may need to be escaped. This is also the reason the
encoding direct is now required in the Rakefile.
  • Loading branch information
nschonni committed Sep 22, 2014
1 parent 74f4722 commit 984d990
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Rakefile
@@ -1,3 +1,5 @@
# encoding: utf-8

require "html/proofer"

task :default => [:test]
Expand All @@ -6,12 +8,17 @@ task :test do
HTML::Proofer.new("dist/", {
:href_ignore => [
"#",
# The additional anchor link is picked up from the Geomap JSON, but shouldn't be flagged
"\\\"#\\\"",
"/v4.0-ci/index.html",
"/v4.0-ci/index-en.html",
"/v4.0-ci/index-fr.html",
"/v4.0-ci/unmin/index.html",
"/v4.0-ci/unmin/index-en.html",
"/v4.0-ci/unmin/index-fr.html",
# The texthighlight plug-in has some non-escaped characters in the query string
"texthighlight/texthighlight-fr.html?txthl=influenza%20aviaire+monde+suffis+symptômes%20semblables%20à%20ceux%20de%20l'influenza+À%20titre%20de%20rappel...+À%20de%20rares%20occasions,%20des%20humains%20ont%20été%20infectés%20par%20ce%20virus.",
"../../../demos/texthighlight/texthighlight-en.html?txthl=influenza%20aviaire+monde+suffis+sympt%C3%B4mes%20semblables%20%C3%A0%20ceux%20de%20l'influenza+%C3%80%20titre%20de%20rappel...+%C3%80%20de%20rares%20occasions,%20des%20humains%20ont%20%C3%A9t%C3%A9%20infect%C3%A9s%20par%20ce%20virus.#exemple"
],
:disable_external => true,
:ext => ".html"
Expand Down

0 comments on commit 984d990

Please sign in to comment.