Skip to content
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

docs: detect and fix broken links #416

Merged
merged 11 commits into from Mar 1, 2023
Merged

docs: detect and fix broken links #416

merged 11 commits into from Mar 1, 2023

Conversation

snitin315
Copy link
Contributor

Prerequisites checklist

What is the purpose of this pull request?

Validate internal links on CI.

What changes did you make? (Give an overview)

Same as eslint/eslint#16837

Related Issues

eslint/eslint#16833

Is there anything you'd like reviewers to focus on?

No

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for new-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/new-eslint/deploys/63f817454bcea200089d54c7
😎 Deploy Preview https://deploy-preview-416--new-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@eslint-github-bot eslint-github-bot bot added the documentation Improvements or additions to documentation label Feb 11, 2023
@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for es-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/es-eslint/deploys/63f81745be4f36000811c84a
😎 Deploy Preview https://deploy-preview-416--es-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for ja-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/ja-eslint/deploys/63f8174538fee000075880f1
😎 Deploy Preview https://deploy-preview-416--ja-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for zh-hans-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/zh-hans-eslint/deploys/63f817457ea48a0008cb9621
😎 Deploy Preview https://deploy-preview-416--zh-hans-eslint.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for hi-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/hi-eslint/deploys/63f81745a7d6bb0008e689c1
😎 Deploy Preview https://deploy-preview-416--hi-eslint.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for fr-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/fr-eslint/deploys/63f81745c9c9cb000885e629
😎 Deploy Preview https://deploy-preview-416--fr-eslint.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for de-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/de-eslint/deploys/63f81745be4f36000811c850
😎 Deploy Preview https://deploy-preview-416--de-eslint.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Feb 11, 2023

Deploy Preview for pt-br-eslint ready!

Name Link
🔨 Latest commit 662daa6
🔍 Latest deploy log https://app.netlify.com/sites/pt-br-eslint/deploys/63f8174525064f0008421e6a
😎 Deploy Preview https://deploy-preview-416--pt-br-eslint.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@amareshsm amareshsm added accepted and removed triage labels Feb 11, 2023
Copy link
Member

@harish-sethuraman harish-sethuraman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Will wait for one more review. Checked the pages where changes were made ✅ .

Copy link
Member

@amareshsm amareshsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tried npm run lint:links it is taking 3-4mins to complete. Is this fine?

@snitin315
Copy link
Contributor Author

Yes, it's taking time as it is checking almost 1800 links. I don't know if there is a way to speed up this.

Copy link
Member

@amareshsm amareshsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do this linting to staged files?

@nzakas
Copy link
Member

nzakas commented Feb 13, 2023

Because this takes so long, I don't think we should run this as part of regular linting. Right now, npm run lint will run this and I think that could be confusing and frustrating if people don't know what's happening. We can definitely run this check in CI, but otherwise, I think we should just check precommit files locally and let people choose to run the link check only if they want.

@snitin315
Copy link
Contributor Author

Makes sense. I will update the script to run on CI only.

@nzakas
Copy link
Member

nzakas commented Feb 15, 2023

I think we should match this up: eslint/eslint#16837 (comment)

.gitignore Outdated Show resolved Hide resolved
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Leaving this open for others to verify.

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice work!

@nzakas nzakas merged commit 53721e9 into main Mar 1, 2023
@nzakas nzakas deleted the detect-broken-links branch March 1, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants