Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automated testing of html output #39

Closed
jseldess opened this issue Feb 5, 2016 · 1 comment
Closed

automated testing of html output #39

jseldess opened this issue Feb 5, 2016 · 1 comment

Comments

@jseldess
Copy link
Contributor

jseldess commented Feb 5, 2016

We should put in place an automated test on Jekyll output. Ideally, the test would run immediately following jekyll serve or jekyll build. At a minimum, the test should catch broken links and broken images.

This might do the trick: https://github.com/gjtorikian/html-proofer

@jseldess
Copy link
Contributor Author

jseldess commented Jun 20, 2016

Installed and ran against local html output. Found a few broken links. Also added some alt-texts. For links in topnav, which the proofer doesn't like the format for, added the data-proofer-ignore attribute.

I think this will be the command to use going forward (from root directory of branch):

$ htmlproofer ./_site --allow-hash-href true

--allow-hash-href true excludes all on-page anchor links from the proofer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant