-
-
Notifications
You must be signed in to change notification settings - Fork 76
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 checks for broken links #77
Comments
I've run into a quandary with checking broken links. There is one link that will always fail in CI and that is By default Remark only issues warnings, so the current lint process doesn't throw an error if the linter finds anything. If we markdown lint errors we were't catching them in CI. Remark will trigger an error if the Normally, I'd say we should trigger an error to catch issues before accepting a change. In this case, we'd never pass CI because of the "dead" localhost link. I see a few options here:
There may be some method to stub this but I'm a neophyte when it comes to travis-ci In any case, we should add something to CONTRIBUTING.md asking contributors to run the listing tests and clean up the warnings before submitting a PR. I'll add something when I have a PR. |
@maxwondercorn the alternative is that we could do the link checking ourselves 🤔 We're already checking internal links with the guidemaker link checker (which is essentially just a port of @jenweber's link-checking code on the Ember Guides) We could expand that link checker to also check outbound links 🤔 What kinds of links are we looking to check exactly? do we have an example of something that was broken and should have been caught in CI? |
@mansona The existing checks in node-tests are only for relative links in the markdown. The link checker I'm referring to will catch outbound links as you indicated. You gave me an idea 🤔 I can add a script command just to lint dead links. It can be manually run as needed. We can have the other linting generate errors to catch inconsistencies. |
I think remark would prob welcome the whitelisting PR. The remark ecosystem is on the upswing and I know one of the maintainers. |
PR #79 closed per discussion about dead link checking - needs to be automated from day one. |
As noted in #73, to add checks for broken links using remark, we need to run Node 8 in our CI.
After #76 is merged, we can add it!
cc @maxwondercorn
The text was updated successfully, but these errors were encountered: