-
-
Notifications
You must be signed in to change notification settings - Fork 546
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 link checking for markdown in CI #2145
Conversation
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.
Thank you!
I see a couple of things in the output that I need to adjust for before this is merged |
I actually don't know why these warnings are occurring. |
It's not happy with the email link
|
Sorry I am late to the party. The dart track does use lychee for our Link workflow. We had it disabled a month or so ago because it was failing for mailto links which it should support. |
@Stargator pointed us to the open issue on the lychee repository that is related to the failing mailto check: lycheeverse/lychee#653 |
This is now correctly failing for a an incorrectly detected bad link (the mailto mentioned by @Stargator ). Until Lychee fixes that issue and subsequently makes a new release of lychee and the lychee-action, this PR is blocked. |
I've worked on a fix here: lycheeverse/lychee#809. |
Yup, I'll release a new version soon. Want to merge in lycheeverse/lychee#810 as well. |
New version of lychee-action with the fix is out. |
Think you so much for the help @mre ! There is still the issue with the timeout for the one link that we have not been able to solve. I will add a commit with an ignore of some sort for this URL. |
No worries. |
Thanks, @mre! @wolf99 The check initially failed due to a timeout on one website. I re-ran it and everything is passing. it looks good! |
There is a merge conflict that needs to be resolved |
From what I can see, the only missing thing is to fix the merge conflicts, right? @wolf99 can you have a look? |
Ill look at this this weekend I hope. |
Seems like there are issues with 2 URLs.
Testing the first one locally with Testing the second locally with |
Re-ran. Looks like that site is doing some check for JS and cookie support, not sure if lycheee supports that. More research required. $ curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0
.0 Safari/537.36" --referer https://foo.com https://www.collinsdictionary.com/dictionary/english/lackadaisical
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Just a moment...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">
</head>
<body class="no-js">
<div class="main-wrapper" role="main">
<div class="main-content">
<noscript>
<div id="challenge-error-title">
<div class="h2">
<span class="icon-wrapper">
<div class="heading-icon warning-icon"></div>
</span>
<span id="challenge-error-text">
Enable JavaScript and cookies to continue
</span>
</div>
</div>
</noscript>
#... |
Nice. You made some great progress! Thanks for looking into that. |
Adding the @mre thanks for all your help! |
Fixes #2139