1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

Don't ignore all '#' URLs when running HTML::Proofer

Explicitly ignore the clipboard button from proofing, which was why the
:href_ignore was there in the first place.  Per
https://github.com/github/choosealicense.com/pull/104/files#r7311111.
This commit is contained in:
Aidan Feldman 2013-12-18 03:28:01 -05:00
parent 2aa75c3130
commit 49e50f6390
2 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,5 @@ require "html/proofer"
task :test do
sh "bundle exec jekyll build --trace"
# ignore href="#" for the "Copy to clipboard" button
HTML::Proofer.new("./_site", :href_ignore => ["#"]).run
HTML::Proofer.new("./_site").run
end

View File

@ -1,6 +1,6 @@
<div class="sidebar">
<a href="#" data-clipboard-target="license-text" class="js-clipboard-button button">Copy license text to clipboard</a>
<a href="#" data-clipboard-target="license-text" data-proofer-ignore="true" class="js-clipboard-button button">Copy license text to clipboard</a>
<div class="how-to-apply">
<h5>How to apply this license</h5>
<p>