Skip to content

Commit 0d5f1df

Browse files
Fix Mintlify tabs (#3275)
* fix tab components using old syntax
1 parent 44fd90f commit 0d5f1df

File tree

8 files changed

+136
-136
lines changed

8 files changed

+136
-136
lines changed

guides/front_end/search_bar_for_docs.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,23 @@ If you use VuePress for your documentation, we provide a [Vuepress plugin](https
114114

115115
In your VuePress project:
116116

117-
<Tabs.Container labels={["yarn", "npm"]}>
118-
<Tabs.Content label="yarn">
117+
<Tabs>
118+
<Tab title="yarn">
119119

120120
```bash
121121
yarn add vuepress-plugin-meilisearch
122122
```
123123

124-
</Tabs.Content>
124+
</Tab>
125125

126-
<Tabs.Content label="npm">
126+
<Tab title="npm">
127127

128128
```bash
129129
npm install vuepress-plugin-meilisearch
130130
```
131131

132-
</Tabs.Content>
133-
</Tabs.Container>
132+
</Tab>
133+
</Tabs>
134134

135135
In your `config.js` file:
136136

learn/relevancy/ranking_rules.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Results are sorted by **the similarity of the matched words with the query words
6565

6666
## Examples
6767

68-
<Tabs.Container labels={["Typo", "Proximity", "Attribute", "Exactness"]}>
68+
<Tabs>
6969

70-
<Tabs.Content label="Typo">
70+
<Tab title="Typo">
7171
<Frame>
7272
<img src="/assets/images/ranking-rules/vogli3.png" alt="Demonstrating the typo ranking rule by searching for 'vogli'" />
7373
</Frame>
@@ -79,9 +79,9 @@ Results are sorted by **the similarity of the matched words with the query words
7979

8080
The `typo` rule sorts the results by increasing number of typos on matched query words.
8181

82-
</Tabs.Content>
82+
</Tab>
8383

84-
<Tabs.Content label="Proximity">
84+
<Tab title="Proximity">
8585
<Frame>
8686
<img src="/assets/images/ranking-rules/new_road.png" alt="Demonstrating the proximity ranking rule by searching for 'new road'" />
8787
</Frame>
@@ -91,9 +91,9 @@ The `typo` rule sorts the results by increasing number of typos on matched query
9191
The reason why `Creature` is listed before `Mississippi Grind` is because of the `proximity` rule. The smallest **distance** between the matching words in `creature` is smaller than the smallest **distance** between the matching words in `Mississippi Grind`.
9292

9393
The `proximity` rule sorts the results by increasing distance between matched query terms.
94-
</Tabs.Content>
94+
</Tab>
9595

96-
<Tabs.Content label="Attribute">
96+
<Tab title="Attribute">
9797
<Frame>
9898
<img src="/assets/images/ranking-rules/belgium.png" alt="Demonstrating the attribute ranking rule by searching for 'belgium'" />
9999
</Frame>
@@ -104,9 +104,9 @@ The `proximity` rule sorts the results by increasing distance between matched qu
104104

105105
The `attribute` rule sorts the results by [attribute importance](/learn/relevancy/attribute_ranking_order).
106106

107-
</Tabs.Content>
107+
</Tab>
108108

109-
<Tabs.Content label="Exactness">
109+
<Tab title="Exactness">
110110
<Frame>
111111
<img src="/assets/images/ranking-rules/knight.png?raw=true" alt="Demonstrating the exactness ranking rule by searching for 'Knight'" />
112112
</Frame>
@@ -115,6 +115,6 @@ The `attribute` rule sorts the results by [attribute importance](/learn/relevanc
115115

116116
`Knight Moves` is displayed before `Knights of Badassdom`. `Knight` is exactly the same as the search query `Knight` whereas there is a letter of difference between `Knights` and the search query `Knight`.
117117

118-
</Tabs.Content>
118+
</Tab>
119119

120-
</Tabs.Container>
120+
</Tabs>

learn/resources/telemetry.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,26 @@ No company is perfect. If you ever feel that we are being anything less than 100
4545

4646
Data collection can be disabled at any time by setting a command-line option or environment variable, then restarting the Meilisearch instance.
4747

48-
<Tabs.Container labels={['Command-line option', 'Environment variable', 'Cloud service']}>
48+
<Tabs>
4949

50-
<Tabs.Content label="Command-line option">
50+
<Tab title="Command-line option">
5151

5252
```bash
5353
meilisearch --no-analytics
5454
```
5555

56-
</Tabs.Content>
56+
</Tab>
5757

58-
<Tabs.Content label="Environment variable">
58+
<Tab title="Environment variable">
5959

6060
```bash
6161
export MEILI_NO_ANALYTICS=true
6262
meilisearch
6363
```
6464

65-
</Tabs.Content>
65+
</Tab>
6666

67-
<Tabs.Content label="Cloud service">
67+
<Tab title="Cloud service">
6868

6969
```bash
7070
# The following procedure should work for all cloud providers,
@@ -81,9 +81,9 @@ systemctl daemon-reload
8181
systemctl restart meilisearch
8282
```
8383

84-
</Tabs.Content>
84+
</Tab>
8585

86-
</Tabs.Container>
86+
</Tabs>
8787

8888
For more information about configuring Meilisearch, read our [configuration reference](/learn/self_hosted/configure_meilisearch_at_launch).
8989

learn/security/basic_security.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ You can view your master key by visiting your project overview:
2828

2929
To protect your self-hosted instance, relaunch it using the `--master-key` command-line option or the `MEILI_MASTER_KEY` environment variable:
3030

31-
<Tabs.Container labels={['CLI', 'Environment variable']}>
32-
<Tabs.Content label="CLI">
31+
<Tabs>
32+
<Tab title="CLI">
3333

3434
```sh
3535
./meilisearch --master-key="MASTER_KEY"
3636
```
3737

38-
</Tabs.Content>
38+
</Tab>
3939

40-
<Tabs.Content label="Environment variable">
40+
<Tab title="Environment variable">
4141

4242
UNIX:
4343

@@ -53,8 +53,8 @@ set MEILI_MASTER_KEY="MASTER_KEY"
5353
./meilisearch
5454
```
5555

56-
</Tabs.Content>
57-
</Tabs.Container>
56+
</Tab>
57+
</Tabs>
5858

5959
<Tip>
6060
The master key must be at least 16-bytes-long and composed of valid UTF-8 characters. Use one of the following tools to generate a secure master key:

learn/self_hosted/configure_meilisearch_at_launch.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,27 @@ The above flag disables analytics for the Meilisearch instance and does not acce
3535

3636
To configure a Meilisearch instance using environment variables, set the environment variable prior to launching the instance. If you are unsure how to do this, read more about [setting and listing environment variables](https://linuxize.com/post/how-to-set-and-list-environment-variables-in-linux/), or [use a command-line option](#command-line-options-and-flags) instead.
3737

38-
<Tabs.Container labels={["UNIX", "Windows"]}>
39-
<Tabs.Content label="UNIX">
38+
<Tabs>
39+
<Tab title="UNIX">
4040

4141
```sh
4242
export MEILI_DB_PATH=./meilifiles
4343
export MEILI_HTTP_ADDR=localhost:7700
4444
./meilisearch
4545
```
4646

47-
</Tabs.Content>
47+
</Tab>
4848

49-
<Tabs.Content label="Windows">
49+
<Tab title="Windows">
5050

5151
```sh
5252
set MEILI_DB_PATH=./meilifiles
5353
set MEILI_HTTP_ADDR=127.0.0.1:7700
5454
./meilisearch
5555
```
5656

57-
</Tabs.Content>
58-
</Tabs.Container>
57+
</Tab>
58+
</Tabs>
5959

6060
In the previous example, `./meilisearch` is the command that launches a Meilisearch instance, while `MEILI_DB_PATH` and `MEILI_HTTP_ADDR` are environment variables that modify this instance's behavior.
6161

@@ -94,16 +94,16 @@ If the `Config file path` is anything other than `"none"`, it means that a confi
9494

9595
You can override the default location of the configuration file using the `MEILI_CONFIG_FILE_PATH` environment variable or the `--config-file-path` CLI option:
9696

97-
<Tabs.Container labels={['CLI', 'Environment variable']}>
98-
<Tabs.Content label="CLI">
97+
<Tabs>
98+
<Tab title="CLI">
9999

100100
```sh
101101
./meilisearch --config-file-path="./config.toml"
102102
```
103103

104-
</Tabs.Content>
104+
</Tab>
105105

106-
<Tabs.Content label="Environment variable">
106+
<Tab title="Environment variable">
107107

108108
UNIX:
109109

@@ -119,8 +119,8 @@ set MEILI_CONFIG_FILE_PATH="./config.toml"
119119
./meilisearch
120120
```
121121

122-
</Tabs.Content>
123-
</Tabs.Container>
122+
</Tab>
123+
</Tabs>
124124

125125
### Configuration file formatting
126126

learn/self_hosted/install_meilisearch_locally.mdx

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Take a look at our [Meilisearch Cloud tutorial](/learn/getting_started/cloud_qui
1414

1515
## Local installation
1616

17-
<Tabs.Container labels={["cURL", "Homebrew", "Docker", "APT", "Source", "Windows", "Direct download"]}>
17+
<Tabs>
1818

19-
<Tabs.Content label="cURL">
19+
<Tab title="cURL">
2020
Download the **latest stable release** of Meilisearch with **cURL**.<br />
2121

2222
Launch Meilisearch to start the server.
@@ -29,9 +29,9 @@ curl -L https://install.meilisearch.com | sh
2929
./meilisearch
3030
```
3131

32-
</Tabs.Content>
32+
</Tab>
3333

34-
<Tabs.Content label="Homebrew">
34+
<Tab title="Homebrew">
3535
Download the **latest stable release** of Meilisearch with **[Homebrew](https://brew.sh/)**, a package manager for MacOS.<br />
3636

3737
Launch Meilisearch to start the server.
@@ -44,9 +44,9 @@ brew update && brew install meilisearch
4444
meilisearch
4545
```
4646

47-
</Tabs.Content>
47+
</Tab>
4848

49-
<Tabs.Content label="Docker">
49+
<Tab title="Docker">
5050
When using **Docker**, you can run [any tag available in our official Docker image](https://hub.docker.com/r/getmeili/meilisearch/tags).<br />
5151

5252
These commands launch the **latest stable release** of Meilisearch.
@@ -65,9 +65,9 @@ docker run -it --rm \
6565
```
6666

6767
You can learn more about [using Meilisearch with Docker in our dedicated guide](/guides/docker).
68-
</Tabs.Content>
68+
</Tab>
6969

70-
<Tabs.Content label="APT">
70+
<Tab title="APT">
7171

7272
Download the **latest stable release** of Meilisearch with **APT**.<br />
7373

@@ -84,9 +84,9 @@ sudo apt update && sudo apt install meilisearch
8484
meilisearch
8585
```
8686

87-
</Tabs.Content>
87+
</Tab>
8888

89-
<Tabs.Content label="Source">
89+
<Tab title="Source">
9090

9191
Meilisearch is written in Rust. To compile it, [install the Rust toolchain](https://www.rust-lang.org/tools/install).<br />
9292

@@ -118,9 +118,9 @@ cargo build --release
118118
./target/release/meilisearch
119119
```
120120

121-
</Tabs.Content>
121+
</Tab>
122122

123-
<Tabs.Content label="Windows">
123+
<Tab title="Windows">
124124

125125
To install Meilisearch on Windows, you can:
126126

@@ -131,9 +131,9 @@ To install Meilisearch on Windows, you can:
131131

132132
To learn more about the Windows command prompt, follow this [introductory guide](https://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/).
133133

134-
</Tabs.Content>
134+
</Tab>
135135

136-
<Tabs.Content label="Direct download">
136+
<Tab title="Direct download">
137137

138138
If none of the other installation options work for you, you can always download the Meilisearch binary directly on GitHub.<br />
139139

@@ -150,9 +150,9 @@ chmod +x meilisearch
150150
./meilisearch
151151
```
152152

153-
</Tabs.Content>
153+
</Tab>
154154

155-
</Tabs.Container>
155+
</Tabs>
156156

157157
## Other cloud services
158158

@@ -168,9 +168,9 @@ To deploy Meilisearch on a third-party cloud service, follow one of our dedicate
168168

169169
We discourage the use of older Meilisearch versions. Before installing an older version, please [contact support](https://discord.meilisearch.com) to check if the latest version might work as well.
170170

171-
<Tabs.Container labels={["cURL", "Docker", "Source", "Direct download"]}>
171+
<Tabs>
172172

173-
<Tabs.Content label="cURL">
173+
<Tab title="cURL">
174174

175175
Download the binary of a specific version under "Assets" on our [GitHub changelog](https://github.com/meilisearch/meilisearch/releases).
176176

@@ -190,9 +190,9 @@ chmod +x meilisearch
190190
./meilisearch
191191
```
192192

193-
</Tabs.Content>
193+
</Tab>
194194

195-
<Tabs.Content label="Docker">
195+
<Tab title="Docker">
196196

197197
When using **Docker**, you can run [any tag available in our official Docker image](https://hub.docker.com/r/getmeili/meilisearch/tags).<br />
198198

@@ -211,9 +211,9 @@ docker run -it --rm \
211211

212212
Learn more about [using Meilisearch with Docker in our dedicated guide](/guides/docker).
213213

214-
</Tabs.Content>
214+
</Tab>
215215

216-
<Tabs.Content label="Source">
216+
<Tab title="Source">
217217

218218
Meilisearch is written in Rust. To compile it, [install the Rust toolchain](https://www.rust-lang.org/tools/install).<br />
219219

@@ -246,9 +246,9 @@ cargo build --release
246246
./target/release/meilisearch
247247
```
248248

249-
</Tabs.Content>
249+
</Tab>
250250

251-
<Tabs.Content label="Direct download">
251+
<Tab title="Direct download">
252252

253253
Download the binary of a specific version under "Assets" on our [GitHub changelog](https://github.com/meilisearch/meilisearch/releases).
254254

@@ -263,6 +263,6 @@ chmod +x meilisearch
263263
./meilisearch
264264
```
265265

266-
</Tabs.Content>
266+
</Tab>
267267

268-
</Tabs.Container>
268+
</Tabs>

0 commit comments

Comments
 (0)