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

[FIX]: Handle broken links checker edge-cases #2545

Merged
merged 9 commits into from
Sep 28, 2023

Conversation

justkahdri
Copy link

Pull Request

Related issue

Fixes #<issue_number>

What does this PR do?

  • ...

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

@github-actions
Copy link

github-actions bot commented Sep 5, 2023

All broken links are now fixed, thank you!

@justkahdri
Copy link
Author

I'll run some more tests by Thursday, but in the meantime, the checker found some more broken links that could be useful for you @guimachiavelli

@justkahdri
Copy link
Author

@guimachiavelli I'm pretty confident it works as it should now. Please let me know if you found any other link that wasn't being reflected on the checker.

Also LMK if you would want me to update the action messages as we once discussed on our weekly meetings. 🙏🏼

@justkahdri justkahdri marked this pull request as ready for review September 6, 2023 19:24
@guimachiavelli
Copy link
Member

guimachiavelli commented Sep 7, 2023

hi, @justkahdri!

Was away yesterday, will look into this later.

FYI, one of our devs reported they were scraping the docs and found two other unreported dead links: https://www.meilisearch.com/docs/learn/experimental/learn/configuration/instance_options and https://www.meilisearch.com/docs/learn/advanced/reference/api/facet_search.

I cannot find these with grep and the like. Looking at the links and how they sort of nest sections that have never been nested (e.g. reference/api as a sub dir of learn/advanced), I'm thinking these might be due to a missing / at the beginning of a link. For example, a link to learn/configuration/instance_options instead of /learn/configuration/instance_options. What do you think?

Related issue: #2546

@justkahdri
Copy link
Author

justkahdri commented Sep 7, 2023

Hi @guimachiavelli!

Yup, you're absolutely right. I found them and added a new condition to catch links like those with a missing "/" at the beginning. They're listed with the type related on the broken links checker table.

@justkahdri justkahdri force-pushed the review-broken-links-checker-issues-mei-64 branch from 3c9ab4f to 0f196fa Compare September 7, 2023 13:23
guimachiavelli
guimachiavelli previously approved these changes Sep 26, 2023
Copy link
Member

@guimachiavelli guimachiavelli left a comment

Choose a reason for hiding this comment

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

Seems to be working as expected now.

One comment: unless I'm missing something, related is a confusing name for broken links missing a leading /. I suggest we change that to relative.

@justkahdri
Copy link
Author

Fixed @guimachiavelli, seems the approve is necessary again

@guimachiavelli
Copy link
Member

Approved. May I merge it or should I wait for your signal?

@justkahdri
Copy link
Author

Ship it! :shipit:

@guimachiavelli guimachiavelli merged commit 92b16c7 into main Sep 28, 2023
2 checks passed
@guimachiavelli guimachiavelli deleted the review-broken-links-checker-issues-mei-64 branch September 28, 2023 16:07
@guimachiavelli guimachiavelli mentioned this pull request Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants