From a129405bcea974f24f6fd1b935f0296d8a6cada8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 8 Apr 2024 10:45:18 +0300 Subject: [PATCH 1/2] Adjust for sdk-js v13 as stable version. --- docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md | 11 ++++++++--- docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md | 2 +- docs/sdk-and-tools/sdk-js/sdk-js-cookbook-versions.md | 5 +++-- docusaurus.config.js | 2 +- sidebars.js | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md index a2fff1da..40ad50eb 100644 --- a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md +++ b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md @@ -1,15 +1,20 @@ --- id: sdk-js-cookbook-v12 title: Cookbook (v12) -pagination_next: sdk-and-tools/sdk-js/extending-sdk-js +pagination_prev: sdk-and-tools/sdk-js/sdk-js-cookbook-versions +pagination_next: null --- [comment]: # (mx-abstract) -This page will guide you through the process of handling common tasks using **sdk-js**. +This page will guide you through the process of handling common tasks using **sdk-js v12**. :::important -This cookbook makes use of `sdk-js v12`. In order to migrate from `sdk-js v11.x` to `sdk-js v12`, please follow [the migration guide](/sdk-and-tools/sdk-js/sdk-js-migration-guides). +A newer variant of the **sdk-js** cookbook is available [here](/sdk-and-tools/sdk-js/sdk-js-cookbook-v13). +::: + +:::important +In order to migrate to the newer `sdk-js v13`, please follow [the migration guide](https://github.com/multiversx/mx-sdk-js-core/issues/392). ::: [comment]: # (mx-context-auto) diff --git a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md index 9b539e61..00fcd282 100644 --- a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md +++ b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md @@ -1,8 +1,8 @@ --- id: sdk-js-cookbook-v13 title: Cookbook (v13) +pagination_prev: sdk-and-tools/sdk-js/sdk-js pagination_next: null -pagination_prev: sdk-and-tools/sdk-js/sdk-js-cookbook-versions --- [comment]: # (mx-abstract) diff --git a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-versions.md b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-versions.md index e5e45575..a376c68d 100644 --- a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-versions.md +++ b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-versions.md @@ -2,6 +2,7 @@ id: sdk-js-cookbook-versions title: Cookbook (other versions) pagination_next: null +pagination_prev: sdk-and-tools/sdk-js/sdk-js --- [comment]: # (mx-abstract) @@ -12,5 +13,5 @@ The cookbook version corresponds to the version of the [**sdk-js-core**](https:/ Please follow the version you are interested in: - - [Cookbook v12 **(stable, current version)**](/sdk-and-tools/sdk-js/sdk-js-cookbook-v12) - - [Cookbook v13 **(unstable, upcoming version)**](/sdk-and-tools/sdk-js/sdk-js-cookbook-v13) + - [Cookbook v13 **(stable, current version)**](/sdk-and-tools/sdk-js/sdk-js-cookbook-v13) + - [Cookbook v12 **(legacy, previous version)**](/sdk-and-tools/sdk-js/sdk-js-cookbook-v12) diff --git a/docusaurus.config.js b/docusaurus.config.js index c6133113..8b44f15d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -329,7 +329,7 @@ const config = { }, { from: "/sdk-and-tools/sdk-js/sdk-js-cookbook", - to: "/sdk-and-tools/sdk-js/sdk-js-cookbook-v12", + to: "/sdk-and-tools/sdk-js/sdk-js-cookbook-v13", }, { from: "/sdk-and-tools/erdjs/writing-and-testing-erdjs-interactions", diff --git a/sidebars.js b/sidebars.js index f1aa016e..3a120d0e 100644 --- a/sidebars.js +++ b/sidebars.js @@ -277,7 +277,7 @@ const sidebars = { { label: "Cookbook", type: "doc", - id: "sdk-and-tools/sdk-js/sdk-js-cookbook-v12", + id: "sdk-and-tools/sdk-js/sdk-js-cookbook-v13", }, { type: "category", From 008a8b4185d32473997f2b9910314a798a6967f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 8 Apr 2024 11:05:02 +0300 Subject: [PATCH 2/2] Fix after review. --- docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md | 2 +- docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md index 40ad50eb..96e8f50c 100644 --- a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md +++ b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v12.md @@ -7,7 +7,7 @@ pagination_next: null [comment]: # (mx-abstract) -This page will guide you through the process of handling common tasks using **sdk-js v12**. +This page will guide you through the process of handling common tasks using **sdk-js v12 (legacy, previous version)**. :::important A newer variant of the **sdk-js** cookbook is available [here](/sdk-and-tools/sdk-js/sdk-js-cookbook-v13). diff --git a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md index 00fcd282..af3928de 100644 --- a/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md +++ b/docs/sdk-and-tools/sdk-js/sdk-js-cookbook-v13.md @@ -7,7 +7,7 @@ pagination_next: null [comment]: # (mx-abstract) -This page will guide you through the process of handling common tasks using **upcoming versions** of **sdk-js**. +This page will guide you through the process of handling common tasks using **sdk-js v13 (latest, stable version)**. :::important This cookbook makes use of `sdk-js v13`. In order to migrate from `sdk-js v12.x` to `sdk-js v13`, please also follow [the migration guide](https://github.com/multiversx/mx-sdk-js-core/issues/392).