-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fail build if there are dead internal links #187
Conversation
Using html-proofer. Will apply to new projects only - existing users of the template would need to apply this change manually.
Interesting. It turns out it catches other problems as well. The build's just about to fail. Which nicely proves that this linter does successfully fail the build if it detects problems 😝
I don't really know enough about HTML to know if this is a serious problem, however. I guess this is possibly a question for the maintainers of the template, who might have opinions. Here is the list of all the things that
|
Thanks for raising this PR @bjgill 👍 We'll have a closer look at what exactly |
This feature looks really useful. One thing to consider is if this feature be proposed on the tech-docs-gem? Then it could be distributed as part of that gem. If there's no activity on this for a while we'll close this out, to tidy things up, so let us know if you want to continue working on this. 👍 |
Follow example from alphagov/tech-docs-template#187 Also contains gem update. This will be useful to keep track of fixing the 24 broken links currently in the tdt docs.
Following configuration from alphagov/tech-docs-template#187
I think it would be good to keep trying this approach in a few more of the important tech docs instances, for example the GaaP projects. Then, when we're confident it works across different scenarios we could consider adding this to the gem itself? |
Seems sensible. |
Yup, sounds sensible, but worth mentioning that some docs, like the PaaS docs have implemented link checking in other ways. Might be one to try for the Pay docs @m-green ? |
Definitely @bravegrape - was literally just trying this out locally on Pay docs after seeing this PR :) |
Closing this until we're ready to pick up #186 again. |
Using html-proofer. Will apply to new projects only - existing users of the template would need to apply this change manually.
Resolves #186