Skip to content

Commit 693ffc1

Browse files
committed
Update README's and CONTRIBUTING guides (#969)
* Update README's * Update README's
1 parent b668a21 commit 693ffc1

File tree

4 files changed

+94
-18
lines changed

4 files changed

+94
-18
lines changed

CONTRIBUTING.md

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,33 +52,41 @@ yarn lint:fix
5252
yarn build
5353
```
5454

55+
If you want to test a specific package, from the root directory run any of the above command with the `filter` flag.
56+
57+
Example:
58+
```
59+
turbo run test --filter=@meilisearch/instant-meilisearch
60+
```
61+
5562
### Playgrounds <!-- omit in TOC -->
5663

57-
To test directly your changes in `instant-meilisearch`, you can run the Vue playground:
64+
#### @meilisearch/instant-meilisearch playgrounds
5865

66+
To test directly your changes in `instant-meilisearch`, you can run the following playgrounds:
67+
68+
`Vue 3`
5969
```bash
6070
yarn playground:vue
6171
```
6272

63-
Or the React playground:
73+
`React`:
6474

6575
```bash
6676
yarn playground:react
6777
```
6878

69-
Or the JavaScript playground:
79+
`Vanilla JS`:
7080
```
7181
yarn playground:javascript
7282
```
7383

74-
Or the HTML playground:
84+
`HTML`:
7585
```
7686
yarn playground:html
7787
```
7888

79-
### Geo-Search Playground
80-
81-
A playground is available to try out the [GeoSearch](./README.md/-geo-search) in `instant-meilisearch`.
89+
An additional playground is provided to test out the [GeoSearch](./packages/instant-meilisearch#-geo-search).
8290

8391
```bash
8492
yarn playground:geo-javascript
@@ -105,10 +113,13 @@ We don't follow any other convention, but if you want to use one, we recommend [
105113

106114
### Changesets <!-- omit in TOC -->
107115

108-
We use [changesets](https://github.com/Noviny/changesets) to do versioning. What that means is that you need to [add a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) by running `yarn changeset`. The changeset you create contains what packages should be bumped, their associated semver type and the changelogs.
116+
We use [changesets](https://github.com/Noviny/changesets) to do versioning. What that means is that you need to [add a changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) by running `yarn changeset`. The changeset you create contains which packages should be bumped, their associated semver type and the changelogs.
117+
118+
119+
> avant chaque release, les fichiers sont supprimés (voir process qui suit)
109120
110-
These changesets are added in the `.changesets` directory at the root of the repository, and should be added in your PR.
111-
Once there is a [release](#release-on-github-and-npm), these files are automatically removed.
121+
These changesets are added to the `.changesets` directory at the root of the repository, and should be added to your PR.
122+
Before a release, these files are removed (see [process](#release-on-github-and-npm)).
112123

113124
Some changes do [not require a changeset](https://github.com/changesets/changesets/blob/main/docs/intro-to-using-changesets.md#not-every-change-requires-a-changeset). For example changes that does not impact the packages, e.g. : Updating the README.md or changes in tests files.
114125

@@ -131,17 +142,17 @@ Meilisearch tools follow the [Semantic Versioning Convention](https://semver.org
131142
This project integrates a bot that helps us manage pull requests merging.<br>
132143
_[Read more about this](https://github.com/meilisearch/integration-guides/blob/main/resources/bors.md)._
133144

134-
### Release on Github and npm
145+
### Release on GitHub and npm
135146

136-
This repository uses the [changesets](https://github.com/Noviny/changesets) library to handle the version updates and the publishing on Github and `npm`.
147+
This repository uses the [changesets](https://github.com/Noviny/changesets) library to handle the version updates and the publishing on GitHub and `npm`.
137148

138-
When PR's are merged on `main`, they trigger the [`release` CI](./.github/workflows/publish.yml). This CI creates a PR titled `Version Packages` containing all the version updates and changelogs of the impacted packages. The PR updates the versions and the changelogs based on the `changesets` that were previously pushed on main (see [changeset section](#changesets)).
149+
When PRs are merged on `main`, they trigger the [`release` CI](./.github/workflows/publish.yml). This CI creates a PR titled `Version Packages` containing all the version updates and changelogs of the impacted packages. The PR updates the versions and the changelogs based on the `changesets` that were previously pushed on main (see [changeset section](#changesets)).
139150

140-
To release on Github and `npm` you must merge the `Version packages` PR. This will trigger the publishing action and create the Github and `npm` releases for all affected packages.
151+
To release on GitHub and `npm` you must merge the `Version packages` PR. This will trigger the publishing action and create the GitHub and `npm` releases for all affected packages.
141152

142153
See more in depth explaination on [versioning](https://github.com/changesets/changesets/blob/main/docs/command-line-options.md#version), [publishing](https://github.com/changesets/changesets/blob/main/docs/command-line-options.md#publish) and the [changesets github-action](https://github.com/changesets/action).
143154

144-
If you were previously on `pre-release mode`, do not forget to create a PR exiting the pre-release mode by doing `yarn changeset pre exit` and then merge it to main.
155+
If you merged a beta branch, that was released, into main, you were probably in the `changesets` [pre-release](https://github.com/changesets/changesets/blob/main/docs/prereleases.md) mode (see section on [releasing a beta](#release-a-beta-version)). If the `pre.json` file is present in the `.changesets` folder, you need to exit that mode. This is possible by running `yarn changeset pre exit`. Once done, create a PR with the changes and merge it to main.
145156

146157
#### Codesandbox update
147158
Once the version is available on npm, please update the instant-meilisearch version used in the different Code-Sandboxes we provide:
@@ -172,11 +183,11 @@ Here are the steps to release a beta version of this package depending on its ty
172183

173184
2. Enable the pre-release mode by running `yarn changeset pre enter [X]`. `X` is the part after the `/` of your beta branch. Example for `beta/refactor`, X would be `refactor`. This will create a `pre.json` file in `.changesets` that must be pushed on your beta branch.
174185

175-
3. Commit and push your related PR's to the newly created branch (step 1).
186+
3. Commit and push your related PRs to the newly created branch (step 1).
176187

177188
4. When a PR is merged onto your beta branch, the [release CI](./.github/workflows/publish.yml) opens a PR named `Version Packages (X)` (see step 2 for `X`). This PR contains all the changesets and the version update based on the type of changes in the changesets.
178189

179-
5. To publish the release on Github and `npm`, you need to merge the `Version Packages (X)` PR. This will trigger the publishing.
190+
5. To publish the release on GitHub and `npm`, you need to merge the `Version Packages (X)` PR. This will trigger the publishing.
180191

181192
<hr>
182193

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<p align="center">
2+
<img src="https://raw.githubusercontent.com/meilisearch/integration-guides/main/assets/logos/logo.svg" alt="Instant-Meilisearch" width="200" height="200" />
3+
</p>
4+
5+
<h1 align="center">Meilisearch Javascript plugins</h1>
6+
7+
<p align="center">
8+
<a href="https://github.com/meilisearch/instant-meilisearch/actions"><img src="https://github.com/meilisearch/instant-meilisearch/workflows/Tests/badge.svg?branch=main" alt="Tests"></a>
9+
<a href="https://github.com/meilisearch/instant-meilisearch/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-informational" alt="License"></a>
10+
<a href="https://github.com/meilisearch/meilisearch/discussions" alt="Discussions"><img src="https://img.shields.io/badge/github-discussions-red" /></a>
11+
<a href="https://ms-bors.herokuapp.com/repositories/48"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a>
12+
</p>
13+
14+
**Meilisearch** is an open-source search engine. [Discover what Meilisearch is!](https://github.com/meilisearch/meilisearch)
15+
16+
This repository contains clients and plugins to use Meilisearch in third party tools.
17+
18+
## Table of Contents <!-- omit in toc -->
19+
20+
- [📖 Documentation](#-documentation)
21+
- [🐱 Plugins](#-plugins)
22+
- [⚙️ Development Workflow and Contributing](#️-development-workflow-and-contributing)
23+
24+
## 📖 Documentation
25+
26+
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://docs.meilisearch.com/).
27+
28+
## 🐱 Plugins:
29+
30+
### Plugins Found Here
31+
| | |
32+
| --------------------------------------------------- | ----------------------------------------------------------------------------------------- |
33+
| [`instant-meilisearch`](./packages/instant-meilisearch) | The search client needed to make Meilisearch work with [instantsearch.js](https://github.com/algolia/instantsearch). |
34+
| | |
35+
36+
### Plugins Found On their Own Repo
37+
38+
| | |
39+
| --------------------------------------------------- | ----------------------------------------------------------------------------------------- |
40+
| [`strapi-plugin-meilisearch`](https://github.com/meilisearch/strapi-plugin-meilisearch) | A plugin to add and synchronize your [Strapi](https://strapi.io/) data on Meilisearch. |
41+
| [`Firestore-meilisearch`](https://github.com/meilisearch/firestore-meilisearch/) | A plugin to synchronize your [firestore](https://firebase.google.com/docs/firestore) data on Meilisearch. |
42+
| [`gatsby-plugin-meilisearch`](https://github.com/meilisearch/gatsby-plugin-meilisearch/) | A plugin to index your [Gatsby](https://www.gatsbyjs.com/) content to Meilisearch based on graphQL queries. |
43+
| [`docs-searchbar.js`](https://github.com/meilisearch/docs-searchbar.js) | A search bar integration for all kinds of documentation. |
44+
| [`vuepress-plugin-meilisearch`](https://github.com/meilisearch/vuepress-plugin-meilisearch) | A plugin to use docs-searchbar.js as the searchbar of vuepress. |
45+
| | |
46+
47+
## ⚙️ Development Workflow and Contributing
48+
49+
Any new contribution is more than welcome in this project!
50+
51+
If you want to know more about the development workflow or want to contribute, please visit our [contributing guidelines](/CONTRIBUTING.md) for detailed instructions!
52+
53+
<hr>
54+
55+
**Meilisearch** provides and maintains many **SDKs and Integration tools** like this one. We want to provide everyone with an **amazing search experience for any kind of project**. If you want to contribute, make suggestions, or just know what's going on right now, visit us in the [integration-guides](https://github.com/meilisearch/integration-guides) repository.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Contributing <!-- omit in TOC -->
2+
3+
First of all, thank you for contributing to Meilisearch!
4+
5+
For the full explaination on how to contribute, please refer to the [contributing guide](../../CONTRIBUTING.md) at the root of this repository.

packages/instant-meilisearch/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
**Meilisearch** is an open-source search engine. [Discover what Meilisearch is!](https://github.com/meilisearch/meilisearch)
2727

28-
This library is a client that establishes communication between your [Meilisearch](https://github.com/meilisearch/meilisearch) instance and [InstantSearch](https://github.com/algolia/instantsearch.js). InstantSearch, an open-source project developed by Algolia, is the tool that renders all the components needed to start searching in your front-end application.
28+
This library is the search client that you should use to make [Meilisearch](https://github.com/meilisearch/meilisearch) work with [InstantSearch](https://github.com/algolia/instantsearch.js). InstantSearch, an open-source project developed by Algolia, is the tool that renders all the components needed to start searching in your front-end application.
2929

3030
Instead of reinventing the wheel, we have opted to reuse the InstantSearch library for our own front-end tooling. We will contribute upstream any improvements that may result from our adoption of InstantSearch.
3131

@@ -39,6 +39,7 @@ NB: If you don't have any Meilisearch instance running and containing your data,
3939

4040
## Table of Contents <!-- omit in toc -->
4141

42+
- [📖 Documentation](#-documentation)
4243
- [🔧 Installation](#-installation)
4344
- [🎬 Usage](#-usage)
4445
- [💅 Customization](#-customization)
@@ -47,6 +48,10 @@ NB: If you don't have any Meilisearch instance running and containing your data,
4748
- [📜 API Resources](#-api-resources)
4849
- [⚙️ Development Workflow and Contributing](#️-development-workflow-and-contributing)
4950

51+
## 📖 Documentation
52+
53+
For general information on how to use Meilisearch—such as our API reference, tutorials, guides, and in-depth articles—refer to our [main documentation website](https://docs.meilisearch.com/).
54+
5055
## 🔧 Installation
5156

5257
Use `npm` or `yarn` to install `instant-meilisearch`:

0 commit comments

Comments
 (0)