-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add html-proof for automated testing #161
Conversation
as this does not yet exist
This reverts commit 5caf5c5.
because this gives 429 errors
as this causes problems for the website of Gabriel Hanganu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little bit biased, but I've used html-proofer in the past and it tends to have issues because it isn't able to retry, whistlist, or do functionality that we would need. Instead of html-proofer I want to suggest the urlstecher / urlchecker-action:
https://github.com/urlstechie/urlchecker-action
it has huge ability for customization, and includes all the features that html-proofer was lacking (at least when I used it). I'm one of the developers on the project, so I can be responsive to help requests, issues, etc. There is also a nice folder of example github workflow templates to start with.
And some background is here USRSE/usrse.github.io#171 - we literally went through the same steps of having html-proofer to run on travis/circle, and then it was a pain because ephemeral timeouts, etc. would fail the PR. |
Nice @vsoch! I did not know this. Having you as the developer of the testing library onboard is already reason enough for me to use your library due to the better support 😉 would you mind changing the files in this PR to set it up for url-checker? Or shall we do this in a new PR? |
If it's okay with you, I think a new PR should be done - this one has quite a bit going on (unless it wasn't rebased?) |
If you are going to close, let's just leave it open so I can make sure they work the same. Also, I'm going to bed soon so I hope you don't expect this soon! Feel free to jump in and do the PR if you don't want to wait for me :) |
Sure, it must be really late across the ocean, no worries :D I'd at least already implement the fixes, the url checker can wait until you're awake again, I guess (as the broken links where identified already). Thanks a lot @vsoch! |
and remove masthead_title
as this makes problems for simon hettricks profile
alright. I merged the master branch and fixed the new problems. So this is ready to be reviewed |
My mistake! I did a grep and two showed up (one inside, one outside the _site folder). What about the 404 page url, that was the other url that was missing:
I'm not sure https://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js is online anymore? |
Tests pass, so all must be good :) |
true, I excluded 404.html in the check. I'll add your 404.html from e7682cf |
by using the one of e7682cf
done, thanks @vsoch! |
feel free to approve and merge this PR then @vsoch |
mainly account for host with sorse.github.io and the removed baseurl
done @vsoch, these issues existed already in the original README 😅 |
And I should probably stop looking, now I just feel bad :) I think it’s good for squash and merge and any remaining details can be addressed later! Perfection is the enemy of the good, something something. |
thanks @vsoch 😆 |
This should have been done before, but I forgot about it.
As we are facing a lot of broken links, this PR adds a checker using html-proofer that particularly checks for broken links. Note that it unfortunately does not work for setting the
baseurl
orurl
in the_config.yml
, so I needed to exclude it in the.circleci/_config.yml
file.closes #124, closes #152, closes #153 and solves several other broken links