Skip to content

Remove README.md API section, refactor Documentation section #1866

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

flevi29
Copy link
Collaborator

@flevi29 flevi29 commented Feb 5, 2025

Pull Request

What does this PR do?

  • removes README.md API section
  • refactors Documentation section

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!

Summary by CodeRabbit

  • Documentation
    • Simplified the README by removing the detailed "API resources" section.
    • Added concise links to the client library documentation and the main Meilisearch documentation.
    • Updated the table of contents to reflect these changes.

@flevi29 flevi29 added the documentation Improvements or additions to documentation label Feb 5, 2025
@flevi29 flevi29 mentioned this pull request Feb 5, 2025
8 tasks
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.03%. Comparing base (77505c0) to head (db16378).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1866   +/-   ##
=======================================
  Coverage   99.03%   99.03%           
=======================================
  Files          18       18           
  Lines        1449     1449           
  Branches      305      305           
=======================================
  Hits         1435     1435           
  Misses         14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@flevi29
Copy link
Collaborator Author

flevi29 commented May 2, 2025

@Strift We must get rid of this README.md API section. It is too much of a headache to maintain. Already have an issue regarding it: #1929

@flevi29 flevi29 linked an issue May 8, 2025 that may be closed by this pull request
@flevi29
Copy link
Collaborator Author

flevi29 commented May 11, 2025

#1944

@Strift
Copy link
Collaborator

Strift commented May 14, 2025

I agree this is causing unnecessary maintenance.

However, I think the users are mostly facing these issues because the .code-samples.meilisearch.yaml file is outdated. This is where the Meilisearch Docs retrieves the code samples from.

Copy link

coderabbitai bot commented May 19, 2025

Walkthrough

The README.md file was updated to remove the detailed "API resources" section, which previously listed TypeScript method signatures and links for Meilisearch client API operations. This section was replaced with two succinct documentation links, and the table of contents was updated to reflect this change.

Changes

File(s) Change Summary
README.md Removed the detailed "API resources" section, updated documentation links, and table of contents.

Poem

In README fields where APIs grew,
Now just two links shine through.
The clutter is gone, the docs are neat,
A simpler path for all to greet.
🐇 With every hop, we clear the way,
For better docs—hip hip hooray!


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@flevi29
Copy link
Collaborator Author

flevi29 commented May 19, 2025

I think the users are mostly facing these issues because the .code-samples.meilisearch.yaml file is outdated.

I have addressed this in #1948

@flevi29
Copy link
Collaborator Author

flevi29 commented May 19, 2025

@coderabbitai review

Copy link

coderabbitai bot commented May 19, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
README.md (1)

43-47: Optional: Improve bullet styling for consistency
For consistency with other title-cased headings in the README, you could capitalize the link text and description and swap the Unicode “─” for an em-dash:

- [client library documentation](https://meilisearch.github.io/meilisearch-js/modules.html) ─ information on each exported item of this package
+ [Client library documentation](https://meilisearch.github.io/meilisearch-js/modules.html) — Information on each exported item of this package

- [main documentation website](https://www.meilisearch.com/docs/) ─ general
- information on how to use Meilisearch—such as our API reference, tutorials,
- guides, and in-depth articles
+ [Main documentation website](https://www.meilisearch.com/docs/) — General information on how to use Meilisearch, including our API reference, tutorials, guides, and in-depth articles
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 77505c0 and db16378.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🔇 Additional comments (2)
README.md (2)

43-44: Validate client library documentation link
The new [client library documentation] link correctly points to the generated modules page and succinctly replaces the old in-README API listings.


45-47: Validate main documentation website link
The [main documentation website] link now directs users to the centralized docs site for full API references, tutorials, and guides—this is a clear and maintainable replacement for the removed API section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Property 'deleteTasks' does not exist on type 'MeiliSearch'.ts(2339)
2 participants