-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 linkinator. #2565
Add linkinator. #2565
Conversation
Just for reference, I abandoned a PR in core that ran linkinator on the API docs: nodejs/node#27267 There were some false positives (mainly links to Google's V8 docs, JustinBeckwith/linkinator#24). |
Yeah, this is for internal links, mostly. Hence why I suggest to clean up absolute vs relative links so that we manage to at least scan successfully the internal links properly. |
OK, this only fails due to #2564. |
This should pass now. It should be better than nothing, and assuming we extend it later to scan all locales, it should be a good step forward. Still doesn't scan 3rd-party links, nor |
Forgot to emphasize, it's definitely not a bulletproof solution. I mean, for starters, we shouldn't need to run our server, but it doesn't work with the current dist folder structure. So, we definitely need to do this via the API later. |
For example, I don't get why the broken links I fixed on #2604 weren't reported. EDIT: could be because they point outside of |
Currently only scans the English files only.
@XhmikosR Why we can't use this for all languages? |
It doesn't work with our folder structure, so doing We need to switch to using the API later for each folder, see JustinBeckwith/linkinator#82 and a very first patch master...XhmikosR:master-xmr-linkinator-2 |
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.
Let's try this tool. Sounds optimistic
Currently only scans the English files only.
I think we'll need to move this a script and use linkinator's API to loop through all languages.
Note that this solution works on Windows too hence why I don't use
&
in the script. Also, note that I had to add a delay since thenpm run serve
scripts was starting after linkininator.Upstream discussion: JustinBeckwith/linkinator#82
Any help is welcome.