From 4202bb002bd4a9d6089191f792c5e16cb7ef8b5f Mon Sep 17 00:00:00 2001 From: dino475 Date: Fri, 11 Oct 2024 15:10:17 -0700 Subject: [PATCH 1/3] Update versioning.mdx editing the versions documentation to reflect the new feature mentioned here: https://app.plain.com/workspace/w_01H3FZJ8MG74GFXA5WA3MPB446/thread/th_01J8072V8GHJ17KYP2B1SNHGJX/ --- settings/versioning.mdx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/settings/versioning.mdx b/settings/versioning.mdx index dbafd459c..dad587eba 100644 --- a/settings/versioning.mdx +++ b/settings/versioning.mdx @@ -10,6 +10,17 @@ These guides will assume `v1` pages are in a folder named `v1`, `v2` pages are i 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. +If you would like to specify a default version, you can do so like this: + +``` +"versions": [ +{ + name: "name", + default: true +} +] +``` + The versions dropdown will show your versions in the order you include them in `mint.json`. From 0f4a4ddb9235d46285a0355a312c063248ad5b18 Mon Sep 17 00:00:00 2001 From: dino475 Date: Mon, 14 Oct 2024 09:57:49 -0700 Subject: [PATCH 2/3] Update settings/versioning.mdx Co-authored-by: Baylee Schmeisser <119542904+mxbaylee@users.noreply.github.com> --- settings/versioning.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/settings/versioning.mdx b/settings/versioning.mdx index dad587eba..652cce58f 100644 --- a/settings/versioning.mdx +++ b/settings/versioning.mdx @@ -14,10 +14,10 @@ If you would like to specify a default version, you can do so like this: ``` "versions": [ -{ - name: "name", - default: true -} + { + "name": "version-name", + "default": true + } ] ``` From c4cb722a25dec3daf2a13d1715c56279a6c03b34 Mon Sep 17 00:00:00 2001 From: Ronan McCarter <63772591+rpmccarter@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:02:44 -0800 Subject: [PATCH 3/3] add json lang --- settings/versioning.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/versioning.mdx b/settings/versioning.mdx index 652cce58f..7eb876a4a 100644 --- a/settings/versioning.mdx +++ b/settings/versioning.mdx @@ -12,7 +12,7 @@ Add `"versions": ["v2", "v1"]` to your `mint.json` file where `v1` and `v2` are If you would like to specify a default version, you can do so like this: -``` +```json "versions": [ { "name": "version-name",