* #837: Add A Blog To Bitcoin.org
* #838: Full Node Guide: Add Windows 8.x Instructions
* #842: QA: Fix 16,591 HTML Validation Errors
This commit is contained in:
David A. Harding 2015-04-28 11:03:17 -04:00
commit 8e573b38f3
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7
74 changed files with 864 additions and 240 deletions

View file

@ -2,12 +2,18 @@
require 'html/proofer'
if ARGV[0].nil?
path_to_check="./_site"
else
path_to_check=ARGV[0]
end
## Will throw an exception (exiting false) if any internal links don't
## work. The Makefile will terminate on the failure
HTML::Proofer.new(
## To test, uncomment the array below and comment out ./_site and :disable_external
#[ "/foo/bar#baz", "/foo/bar", "#", "#wallet", "/foo.css", "/bar.png", "/zh_TW/bitcoin-for-businesses" ],
"./_site",
path_to_check,
{
## Disable external link checking by default to avoid spurious
@ -16,6 +22,9 @@ HTML::Proofer.new(
## manual checks
:disable_external => true,
## Check whether HTML is well-formed
:check_html => true,
## Links to ignore
:href_ignore => [
'#', ## hrefs pointing to the current page (htmlproofer fails them)