Skip to content

Commit ab34a15

Browse files
bors[bot]meili-botbidoubiwa
authored
Merge #533
533: Changes related to the rebranding r=bidoubiwa a=meili-bot _This PR is auto-generated._ - [X] Change the name `MeiliSearch` to `Meilisearch` in README and CONTRIBUTING. - [x] ⚠️ Ensure the bot did not update part you don’t want it to update, especially in the code examples in the Getting started. - [x] Please, ensure there is no other "MeiliSearch". For example, in the comments or in the tests name. - [x] Put the new logo on the README if needed. Co-authored-by: meili-bot <[email protected]> Co-authored-by: Charlotte Vermandel <[email protected]>
2 parents 96ebb64 + 2f4438f commit ab34a15

File tree

10 files changed

+102
-124
lines changed

10 files changed

+102
-124
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ If applicable, add screenshots or logs to help explain your problem.
2323
**Environment (please complete the following information):**
2424

2525
- OS: [e.g. Debian GNU/Linux]
26-
- MeiliSearch version: [e.g. v.0.20.0]
26+
- Meilisearch version: [e.g. v.0.20.0]
2727
- docs-searchbar.js version: [e.g v1.1.11]
2828
- Browser: [e.g. Chrome version 90.0]

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing <!-- omit in TOC -->
22

3-
First of all, thank you for contributing to MeiliSearch! The goal of this document is to provide everything you need to know in order to contribute to MeiliSearch and its different integrations.
3+
First of all, thank you for contributing to Meilisearch! The goal of this document is to provide everything you need to know in order to contribute to Meilisearch and its different integrations.
44

55
- [Assumptions](#assumptions)
66
- [How to Contribute](#how-to-contribute)
@@ -11,8 +11,8 @@ First of all, thank you for contributing to MeiliSearch! The goal of this docume
1111
## Assumptions
1212

1313
1. **You're familiar with [GitHub](https://github.com) and the [Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests)(PR) workflow.**
14-
2. **You've read the MeiliSearch [documentation](https://docs.meilisearch.com) and the [README](/README.md).**
15-
3. **You know about the [MeiliSearch community](https://docs.meilisearch.com/learn/what_is_meilisearch/contact.html). Please use this for help.**
14+
2. **You've read the Meilisearch [documentation](https://docs.meilisearch.com) and the [README](/README.md).**
15+
3. **You know about the [Meilisearch community](https://docs.meilisearch.com/learn/what_is_meilisearch/contact.html). Please use this for help.**
1616

1717
## How to Contribute
1818

@@ -64,10 +64,10 @@ yarn format:scss
6464

6565
## Playground
6666

67-
We provide a playground in this repository that hot-reloads on change. The playground points to a remote MeiliSearch server that contains the scraped [documentation of MeiliSearch](https://docs.meilisearch.com/).
67+
We provide a playground in this repository that hot-reloads on change. The playground points to a remote Meilisearch server that contains the scraped [documentation of Meilisearch](https://docs.meilisearch.com/).
6868
You can play arround with the options and or just try out the search.
6969

70-
For example, type `create an indxe` to experience MeiliSearch [typo tolerance](https://docs.meilisearch.com/reference/under_the_hood/typotolerance.html).
70+
For example, type `create an indxe` to experience Meilisearch [typo tolerance](https://docs.meilisearch.com/reference/under_the_hood/typotolerance.html).
7171

7272
To launch and open the playground:
7373

@@ -116,7 +116,7 @@ Some notes on GitHub PRs:
116116

117117
## Release Process (for internal team only)
118118

119-
MeiliSearch tools follow the [Semantic Versioning Convention](https://semver.org/).
119+
Meilisearch tools follow the [Semantic Versioning Convention](https://semver.org/).
120120

121121
### Automation to Rebase and Merge the PRs <!-- omit in TOC -->
122122

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<p align="center">
2-
<img src="assets/logo.svg" alt="MeiliSearch" width="200" height="200" />
2+
<img src="https://github.com/meilisearch/integration-guides/blob/main/assets/logos/logo.svg" alt="Meilisearch" width="200" height="200" />
33
</p>
44

55
<h1 align="center">docs-searchbar.js</h1>
66

77
<h4 align="center">
8-
<a href="https://github.com/meilisearch/MeiliSearch">MeiliSearch</a> |
8+
<a href="https://github.com/meilisearch/meilisearch">Meilisearch</a> |
99
<a href="https://docs.meilisearch.com">Documentation</a> |
1010
<a href="https://slack.meilisearch.com">Slack</a> |
1111
<a href="https://roadmap.meilisearch.com/tabs/1-under-consideration">Roadmap</a> |
@@ -20,20 +20,20 @@
2020
<a href="https://app.bors.tech/repositories/28906"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a>
2121
</p>
2222

23-
**docs-searchbar.js** is a front-end SDK for **MeiliSearch** to handle your search bar documentation.
23+
**docs-searchbar.js** is a front-end SDK for **Meilisearch** to handle your search bar documentation.
2424

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

2727
![docs-searchbar.js example](/assets/docs-searchbar-example.png)
2828

29-
💡 If you use VuePress for your website, you should check out our [VuePress plugin for MeiliSearch](https://github.com/meilisearch/vuepress-plugin-meilisearch).
29+
💡 If you use VuePress for your website, you should check out our [VuePress plugin for Meilisearch](https://github.com/meilisearch/vuepress-plugin-meilisearch).
3030

3131
## Table of Contents <!-- omit in toc -->
3232

3333
- [🔧 Installation](#-installation)
3434
- [🎬 Getting Started](#-getting-started)
3535
- [🎨 Customization](#customization)
36-
- [🤖 Compatibility with MeiliSearch](#compatibility-with-meilisearch)
36+
- [🤖 Compatibility with Meilisearch](#compatibility-with-meilisearch)
3737
- [⚙️ Development Workflow and Contributing](#development-workflow-and-contributing)
3838
- [🥇 Credits](#credits)
3939

@@ -57,25 +57,25 @@ Add the following script into your `HTML` file:
5757
<script src="https://cdn.jsdelivr.net/npm/docs-searchbar.js@{version}/dist/cdn/docs-searchbar.min.js"></script>
5858
```
5959

60-
### 🏃‍♀️ Run MeiliSearch <!-- omit in toc -->
60+
### 🏃‍♀️ Run Meilisearch <!-- omit in toc -->
6161

62-
There are many easy ways to [download and run a MeiliSearch instance](https://docs.meilisearch.com/reference/features/installation.html#download-and-launch).
62+
There are many easy ways to [download and run a Meilisearch instance](https://docs.meilisearch.com/reference/features/installation.html#download-and-launch).
6363

6464
For example, using the `curl` command in [your Terminal](https://itconnect.uw.edu/learn/workshops/online-tutorials/web-publishing/what-is-a-terminal/):
6565

6666
```bash
67-
# Install MeiliSearch
67+
# Install Meilisearch
6868
curl -L https://install.meilisearch.com | sh
6969

70-
# Launch MeiliSearch
70+
# Launch Meilisearch
7171
./meilisearch --master-key=masterKey
7272
```
7373

74-
NB: you can also download MeiliSearch from **Homebrew** or **APT** or even run it using **Docker**.
74+
NB: you can also download Meilisearch from **Homebrew** or **APT** or even run it using **Docker**.
7575

7676
### Index your data <!-- omit in toc -->
7777

78-
The goal of this library is to provide a front-end search bar into your own documentation. To make that possible, you need to gather your website content in advance, and index it in a MeiliSearch instance.
78+
The goal of this library is to provide a front-end search bar into your own documentation. To make that possible, you need to gather your website content in advance, and index it in a Meilisearch instance.
7979

8080
Luckily, we provide all the tools that you need, and can help you through the whole process, if you follow [this guide](https://docs.meilisearch.com/create/how_to/search_bar_for_docs.html) 🚀
8181

@@ -85,7 +85,7 @@ Note: If you want to try out `docs-searchbar.js` as a first introduction, [try o
8585

8686
We recommend using the [`docs-scraper` tool](https://github.com/meilisearch/docs-scraper) to scrape your website, but this is not mandatory.
8787

88-
If you already have your own scraper but you still want to use MeiliSearch and `docs-searchbar.js`, check out [this discussion](https://github.com/meilisearch/docs-searchbar.js/issues/40).
88+
If you already have your own scraper but you still want to use Meilisearch and `docs-searchbar.js`, check out [this discussion](https://github.com/meilisearch/docs-searchbar.js/issues/40).
8989

9090

9191
### Getting Started
@@ -139,14 +139,14 @@ Add the following code to one of your `HTML` files.
139139
</html>
140140
```
141141

142-
The `hostUrl` and the `apiKey` (_optional_) fields are the credentials of your MeiliSearch instance.<br>
143-
`indexUid` is the index identifier in your MeiliSearch instance in which your website content is stored.<br>
142+
The `hostUrl` and the `apiKey` (_optional_) fields are the credentials of your Meilisearch instance.<br>
143+
`indexUid` is the index identifier in your Meilisearch instance in which your website content is stored.<br>
144144
`inputSelector` is the `id` attribute of the HTML search input tag.
145145

146146
_Your documentation content is not indexed yet? Check out [this tutorial](https://docs.meilisearch.com/create/how_to/search_bar_for_docs.html)._
147147

148-
**WARNING: We recommend providing the MeiliSearch public key, which is enough to perform search requests.<br>
149-
Read more about [MeiliSearch authentication](https://docs.meilisearch.com/reference/features/authentication.html).**
148+
**WARNING: We recommend providing the Meilisearch public key, which is enough to perform search requests.<br>
149+
Read more about [Meilisearch authentication](https://docs.meilisearch.com/reference/features/authentication.html).**
150150

151151
### Styling
152152

@@ -180,11 +180,11 @@ When calling the `docsSearchBar` method, you can add optional fields:
180180

181181
#### `queryHook` <!-- omit in toc -->
182182

183-
`queryHook` takes a callback function as value. This function will be called on every keystroke to transform the typed keywords before querying MeiliSearch. By default, it does not do anything, but it is the perfect place for you to add some preprocessing or custom functionality.
183+
`queryHook` takes a callback function as value. This function will be called on every keystroke to transform the typed keywords before querying Meilisearch. By default, it does not do anything, but it is the perfect place for you to add some preprocessing or custom functionality.
184184

185185
#### `transformData` <!-- omit in toc -->
186186

187-
`transformData` takes a callback function as value. This function will be called on every hit before displaying them. By default, it does not do anything, but it lets you add any post-processing around the data you received from MeiliSearch.
187+
`transformData` takes a callback function as value. This function will be called on every hit before displaying them. By default, it does not do anything, but it lets you add any post-processing around the data you received from Meilisearch.
188188

189189
#### `handleSelected` <!-- omit in toc -->
190190

@@ -222,7 +222,7 @@ The function is called with the following arguments:
222222

223223
#### `meilisearchOptions` <!-- omit in toc -->
224224

225-
You can forward search parameters to the MeiliSearch API by using the `meilisearchOptions` key. Checkout out the [MeiliSearch documentation about search parameters](https://docs.meilisearch.com/reference/features/search_parameters.html#search-parameters).
225+
You can forward search parameters to the Meilisearch API by using the `meilisearchOptions` key. Checkout out the [Meilisearch documentation about search parameters](https://docs.meilisearch.com/reference/features/search_parameters.html#search-parameters).
226226

227227
For example, you might want to increase the number of results displayed in the dropdown:
228228

@@ -274,7 +274,7 @@ docsSearchBar({
274274

275275
Here is a basic [HTML file](playground/index.html) used in the playground of this repository.
276276

277-
As a more concrete example, you can [check out the configuration](https://github.com/meilisearch/vuepress-plugin-meilisearch/blob/bf2210e131eb5630f632d514f35710ee6576ec7a/MeiliSearchBox.vue#L64) applied in the MeiliSearch plugin for VuePress.
277+
As a more concrete example, you can [check out the configuration](https://github.com/meilisearch/vuepress-plugin-meilisearch/blob/main/MeiliSearchBox.vue#L60) applied in the Meilisearch plugin for VuePress.
278278

279279
#### Styling <!-- omit in toc -->
280280

@@ -317,11 +317,11 @@ As a more concrete example, you can [check out the configuration](https://github
317317

318318
##### More Examples <!-- omit in toc -->
319319

320-
Here is the [CSS customization](https://github.com/meilisearch/vuepress-plugin-meilisearch/blob/bf2210e131eb5630f632d514f35710ee6576ec7a/MeiliSearchBox.vue#L77-L177) applied in the MeiliSearch plugin for VuePress.
320+
Here is the [CSS customization](https://github.com/meilisearch/vuepress-plugin-meilisearch/blob/main/MeiliSearchBox.vue#L82) applied in the Meilisearch plugin for VuePress.
321321

322-
## 🤖 Compatibility with MeiliSearch
322+
## 🤖 Compatibility with Meilisearch
323323

324-
This package only guarantees the compatibility with the [version v0.24.0 of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases/tag/v0.24.0).
324+
This package only guarantees the compatibility with the [version v0.24.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.24.0).
325325

326326
## ⚙️ Development Workflow and Contributing
327327

@@ -336,4 +336,4 @@ Due to a lot of future changes in this repository compared to the original one,
336336

337337
<hr>
338338

339-
**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.
339+
**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.

assets/logo.svg

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "docs-searchbar.js",
33
"version": "2.0.1",
4-
"description": "Add a relevant search bar to your documentation using MeiliSearch",
4+
"description": "Add a relevant search bar to your documentation using Meilisearch",
55
"keywords": [
66
"documentation",
77
"searchbar",
@@ -28,7 +28,7 @@
2828
"files": [
2929
"dist/"
3030
],
31-
"author": "MeiliSearch <[email protected]> (https://github.com/meilisearch/)",
31+
"author": "Meilisearch <[email protected]> (https://github.com/meilisearch/)",
3232
"license": "MIT",
3333
"repository": "meilisearch/docs-searchbar.js",
3434
"devDependencies": {

playgrounds/html/index.html

Lines changed: 59 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,67 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<meta name="color-scheme" content="dark light" />
6-
<title>Docs SearchBar playground</title>
7-
<link
8-
rel="stylesheet"
9-
href="https://cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css"
10-
/>
11-
<link rel="stylesheet" href="../../src/styles/main.scss" />
12-
</head>
13-
<body>
14-
<div class="container">
15-
<div class="col-md-12">
16-
<input
17-
type="search"
18-
placeholder="docs-searchbar input"
19-
class="form-control"
20-
id="q"
21-
/>
22-
</div>
3+
4+
<head>
5+
<meta charset="utf-8" />
6+
<meta name="color-scheme" content="dark light" />
7+
<title>Docs SearchBar playground</title>
8+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bootstrap/3.3.6/css/bootstrap.min.css" />
9+
<link rel="stylesheet" href="../../src/styles/main.scss" />
10+
</head>
11+
12+
<body>
13+
<div class="container">
14+
<div class="col-md-12">
15+
<input type="search" placeholder="docs-searchbar input" class="form-control" id="q" />
2316
</div>
24-
<!-- at the end of the BODY -->
25-
<script src="../../index.js"></script>
26-
<script>
27-
docsSearchBar.default({
28-
// Test with MeiliSearch Documentation
29-
hostUrl: 'https://docs-search-bar.meilisearch.com',
30-
apiKey:
31-
'd79226ae89f29d4dadba8d0c30c240e435f584fb83a7ae573b13eb62edec35cd',
32-
indexUid: 'docs',
33-
inputSelector: '#q',
34-
handleSelected(input, event, suggestion, datasetNumber, context) {
35-
console.info(input)
36-
console.info(event)
37-
console.info(suggestion)
38-
console.info(datasetNumber)
39-
console.info(context)
40-
},
41-
debug: true, // Set debug to true if you want to inspect the dropdown
42-
enhancedSearchInput: true,
43-
enableDarkMode: true
44-
})
45-
</script>
46-
<style>
47-
.container {
48-
margin: 10%;
49-
}
17+
</div>
18+
<!-- at the end of the BODY -->
19+
<script src="../../index.js"></script>
20+
<script>
21+
docsSearchBar.default({
22+
// Test with Meilisearch Documentation
23+
hostUrl: 'https://docs-search-bar.meilisearch.com',
24+
apiKey:
25+
'd79226ae89f29d4dadba8d0c30c240e435f584fb83a7ae573b13eb62edec35cd',
26+
indexUid: 'docs',
27+
inputSelector: '#q',
28+
handleSelected(input, event, suggestion, datasetNumber, context) {
29+
console.info(input)
30+
console.info(event)
31+
console.info(suggestion)
32+
console.info(datasetNumber)
33+
console.info(context)
34+
},
35+
debug: true, // Set debug to true if you want to inspect the dropdown
36+
enhancedSearchInput: true,
37+
enableDarkMode: true
38+
})
39+
</script>
40+
<style>
41+
.container {
42+
margin: 10%;
43+
}
5044

51-
div [data-ds-theme] .searchbox {
52-
width: 60%;
53-
margin: auto;
54-
margin-top: 10%;
55-
display: block;
56-
}
45+
div [data-ds-theme] .searchbox {
46+
width: 60%;
47+
margin: auto;
48+
margin-top: 10%;
49+
display: block;
50+
}
5751

58-
div [data-ds-theme] .searchbox input {
59-
height: 34px;
60-
border-radius: 4px;
61-
font-size: 14px;
62-
}
52+
div [data-ds-theme] .searchbox input {
53+
height: 34px;
54+
border-radius: 4px;
55+
font-size: 14px;
56+
}
6357

64-
@media (prefers-color-scheme: dark) {
65-
body {
66-
background-color: #152028;
67-
color: #eaeaea;
68-
}
58+
@media (prefers-color-scheme: dark) {
59+
body {
60+
background-color: #152028;
61+
color: #eaeaea;
6962
}
70-
</style>
71-
</body>
63+
}
64+
</style>
65+
</body>
66+
7267
</html>

playgrounds/javascript/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import docsSearchBar from '../../../index'
22
import '../../../src/styles/main.scss'
33

44
docsSearchBar({
5-
// Test with MeiliSearch Documentation
5+
// Test with Meilisearch Documentation
66
hostUrl: 'https://docs-search-bar.meilisearch.com',
77
apiKey: 'd79226ae89f29d4dadba8d0c30c240e435f584fb83a7ae573b13eb62edec35cd',
88
indexUid: 'docs',

0 commit comments

Comments
 (0)