mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
* #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:
commit
8e573b38f3
74 changed files with 864 additions and 240 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue