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
Travis : Check site with html-proofer #22
Conversation
a23c240
to
8667de4
Compare
8667de4
to
95efa3f
Compare
@medubelko, this is an attempt to add CI to the website, so we don't get into the situation we've just had with broken links. Currently it fails because there are still outstanding problems with the site. Could you take a look at fixing them please? You can run the tests locally with this :
Really we should remove the |
Are we sure this is working as expected? It seems to be claiming |
I tested this today.
In my error-fix PR, I had to make the following adjustments to nominal HTML so that the proofer would behave:
So, it fails HTML that had no errors with the official W3C validator. I hope it doesn't flag too much other valid code... |
I'm not wed to any particular solution, but it's clear that we need CI for the website. Key links have been broken twice recently, and we haven't even known about it until someone pointed it out. It seems you can pass |
Merged my HTML fixes. @johnhaddon Let's see what Travis reports now. I think you'll need to make a dummy commit to trigger a re-test. |
apparently we have another broken link... should we merge this now so we catch these things more easily? |
If you were referring to the link in GafferHQ/gaffer#2856, Travis wouldn't have caught it, since everything in the public documentation is part of https://github.com/gafferHQ/documentation, copied to the gh-pages separately. I'll check to see why I didn't notice the dead link in the Sphinx log. In any case, I'll see about this repo's Travis config today. |
Rather than manual checks, can we make Sphinx error on missing internal links? |
I re-tested with my HTML fixes. As suspected, the proofer is still throwing errors due to |
Doesn't seem to be an option yet. External links, yes, but not internal. A quick search brought up this issue. The |
Fixed in #30. html-proofer has an undocumented soft dependency on the Here's the documentation for how I replicated the Travis build locally: https://github.com/GafferHQ/gafferhq.github.io/blob/master/VALIDATING.md (* Our gem versions lag behind the 2.3.7 lineage. Jekyll is 3.1.6, github-pages is 82, etc. I'll take this opportunity to again mention that as a whole, this setup is far behind the GH-Pages dependencies...) |
No description provided.