You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: settings/versioning.mdx
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
---
1
+
---
2
2
title: "Versioning & Localization"
3
3
description: "Build separate versions or localizations"
4
4
icon: "square-chevron-down"
@@ -12,16 +12,20 @@ These guides will assume `v1` pages are in a folder named `v1`, `v2` pages are i
12
12
13
13
### Setup
14
14
15
-
Add `"versions": ["v2", "v1"]` to your `mint.json` file where `v1` and `v2` are the names of your versions. You can put any number of versions in this array. The first version from the array serves as the default version.
15
+
Add `"versions": ["v2", "v1"]` to your `docs.json` file where `v1` and `v2` are the names of your versions. You can put any number of versions in this array. The first version from the array serves as the default version.
16
16
17
17
If you would like to specify a default version, you can do so like this:
18
18
```json
19
19
"global": {
20
20
"versions": [
21
21
{
22
-
"version": "version-name",
22
+
"version": "v1",
23
23
"default": true,
24
-
"href": "link-to-version"
24
+
"href": "pathname-to-v1"
25
+
},
26
+
{
27
+
"version": "v2",
28
+
"href": "pathname-to-v2"
25
29
}
26
30
]
27
31
}
@@ -172,7 +176,7 @@ Common errors and how to fix them
172
176
173
177
### Setup
174
178
175
-
`"versions"` in your `mint.json` can be leveraged to create different language versions by adding a `locale` value to the version. The first localization from the array serves as the default localization.
179
+
`"languages"` in your `docs.json` can be leveraged to create different language versions by adding a `language` value to the version. The first language from the array serves as the default language.
176
180
177
181
We currently support localization in English (`en`), Chinese (`cn`), Spanish (`es`), French (`fr`), Japanese (`jp`), Portuguese (`pt`), Portuguese (Brazil) (`pt-BR`), and German (`de`).
178
182
@@ -196,7 +200,7 @@ We currently support localization in English (`en`), Chinese (`cn`), Spanish (`e
196
200
```
197
201
198
202
<Tip>
199
-
The languages dropdown will show your localizations in the order you include
203
+
The languages dropdown will show your languages in the order you include
0 commit comments