moiseevigor / moiseevigor.github.io

Tech Blog
http://moiseevigor.github.io/
MIT License
2 stars 1 forks source link

Test rendered HTML files to make sure they're accurate. Unit testing. #14

Closed moiseevigor closed 9 years ago

moiseevigor commented 9 years ago

https://github.com/gjtorikian/html-proofer

moiseevigor commented 9 years ago

simple as

sudo gem install html-proofer

then

cd moiseevigor.github.io/_site

and finally

moiseevigor.github.io/_site$ htmlproof 
Running ["ScriptCheck", "ImageCheck", "LinkCheck"] checks on . on *.html... 

Checking 105 external links...
Ran on 37 files!

- ./about/index.html
  *  External link https://webmention.io/moiseevigor.github.io/webmention failed: 404 No error
  *  External link https://webmention.io/moiseevigor.github.io/xmlrpc failed: 404 No error
  *  External link https://www.facebook.com/moiseev.igor failed: 404 No error
- ./tag/apache/index.html
  *  internally linking to /tag/php, which does not exist (line 350)
- ./tag/encoding/index.html
  *  internally linking to /tag/unicode, which does not exist (line 350)
- ./tag/index.html
  *  internally linking to /tag/rubygems, which does not exist (line 382)
  *  internally linking to /tag/ssd, which does not exist (line 384)
  *  internally linking to /tag/unicode, which does not exist (line 388)
  *  internally linking to /tag/unix, which does not exist (line 390)
  *  internally linking to /tag/wordpress, which does not exist (line 392)
- ./tag/joomla/index.html
  *  internally linking to /tag/php, which does not exist (line 350)
- ./tag/mysql/index.html
  *  internally linking to /tag/php, which does not exist (line 350)
  *  internally linking to /tag/wordpress, which does not exist (line 352)
htmlproof 2.1.0 | Error:  HTML-Proofer found 13 failures!
moiseevigor commented 9 years ago

Unit est blog: http://www.jacobtomlinson.co.uk/jekyll/2015/02/18/test-you-jekyll-blog-with-travis-ci/

moiseevigor commented 9 years ago