mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +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:
parent
2aa75c3130
commit
49e50f6390
2
Rakefile
2
Rakefile
@ -3,5 +3,5 @@ require "html/proofer"
|
|||||||
task :test do
|
task :test do
|
||||||
sh "bundle exec jekyll build --trace"
|
sh "bundle exec jekyll build --trace"
|
||||||
# ignore href="#" for the "Copy to clipboard" button
|
# ignore href="#" for the "Copy to clipboard" button
|
||||||
HTML::Proofer.new("./_site", :href_ignore => ["#"]).run
|
HTML::Proofer.new("./_site").run
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="sidebar">
|
<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">
|
<div class="how-to-apply">
|
||||||
<h5>How to apply this license</h5>
|
<h5>How to apply this license</h5>
|
||||||
<p>
|
<p>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user