From d60fec6c549874436f95d0a44880bdb7d854a97f Mon Sep 17 00:00:00 2001 From: Sunil Singh Date: Mon, 13 May 2024 11:38:14 -0700 Subject: [PATCH] Updating the config with consolidated redirects and fixing version syntax. Signed-off-by: Sunil Singh --- docs/api/v3-rancher-api-guide.md | 2 +- docusaurus.config.js | 12 ++---------- .../version-2.8/api/v3-rancher-api-guide.md | 2 +- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/api/v3-rancher-api-guide.md b/docs/api/v3-rancher-api-guide.md index 7b1755e7e71..995d66822e4 100644 --- a/docs/api/v3-rancher-api-guide.md +++ b/docs/api/v3-rancher-api-guide.md @@ -6,7 +6,7 @@ title: Previous v3 Rancher API Guide -Rancher 2.8.0 introduced the Rancher Kubernetes API (RK-API). The previous v3 Rancher API is still available. This page describes the v3 API. For more information on RK-API, see the [RK-API quickstart](./quickstart.md) and [reference guide](./api-reference.mdx). +Rancher v2.8.0 introduced the Rancher Kubernetes API (RK-API). The previous v3 Rancher API is still available. This page describes the v3 API. For more information on RK-API, see the [RK-API quickstart](./quickstart.md) and [reference guide](./api-reference.mdx). ## How to Use the API diff --git a/docusaurus.config.js b/docusaurus.config.js index 3bbbcf3c55c..a28562c49ee 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1717,10 +1717,6 @@ module.exports = { to: '/v2.8/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates', from: '/v2.8/pages-for-subheaders/about-rke1-templates' }, - { - to: '/v2.8/api/v3-rancher-api-guide', - from: '/v2.8/pages-for-subheaders/about-the-api' - }, { to: '/v2.8/how-to-guides/new-user-guides/manage-clusters/access-clusters', from: '/v2.8/pages-for-subheaders/access-clusters' @@ -2061,10 +2057,6 @@ module.exports = { to: '/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/about-rke1-templates', from: '/pages-for-subheaders/about-rke1-templates' }, - { - to: '/api/v3-rancher-api-guide', - from: '/pages-for-subheaders/about-the-api' - }, { to: '/how-to-guides/new-user-guides/manage-clusters/access-clusters', from: '/pages-for-subheaders/access-clusters' @@ -3456,7 +3448,7 @@ module.exports = { // Redirects for restructure from PR #1147 (start) { to: '/v2.8/api/v3-rancher-api-guide', - from: '/v2.8/reference-guides/about-the-api' + from: ['/v2.8/reference-guides/about-the-api', '/v2.8/pages-for-subheaders/about-the-api'] }, { to: '/v2.8/api/api-tokens', @@ -3464,7 +3456,7 @@ module.exports = { }, { to: '/api/v3-rancher-api-guide', - from: '/reference-guides/about-the-api' + from: ['/reference-guides/about-the-api', '/pages-for-subheaders/about-the-api'] }, { to: '/api/api-tokens', diff --git a/versioned_docs/version-2.8/api/v3-rancher-api-guide.md b/versioned_docs/version-2.8/api/v3-rancher-api-guide.md index 7b1755e7e71..995d66822e4 100644 --- a/versioned_docs/version-2.8/api/v3-rancher-api-guide.md +++ b/versioned_docs/version-2.8/api/v3-rancher-api-guide.md @@ -6,7 +6,7 @@ title: Previous v3 Rancher API Guide -Rancher 2.8.0 introduced the Rancher Kubernetes API (RK-API). The previous v3 Rancher API is still available. This page describes the v3 API. For more information on RK-API, see the [RK-API quickstart](./quickstart.md) and [reference guide](./api-reference.mdx). +Rancher v2.8.0 introduced the Rancher Kubernetes API (RK-API). The previous v3 Rancher API is still available. This page describes the v3 API. For more information on RK-API, see the [RK-API quickstart](./quickstart.md) and [reference guide](./api-reference.mdx). ## How to Use the API