From 2b28d25f204ed9d1571f4dd7092f4c2a14b88016 Mon Sep 17 00:00:00 2001 From: Kim Ngo <6362111+findkim@users.noreply.github.com> Date: Thu, 6 May 2021 16:26:31 -0500 Subject: [PATCH] docs/nia: simplify api and cli url paths (#10199) --- .../docs/nia/api/{api-overview.mdx => index.mdx} | 0 .../docs/nia/cli/{cli-overview.mdx => index.mdx} | 0 website/data/docs-nav-data.json | 4 ++-- website/redirects.next.js | 10 ++++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) rename website/content/docs/nia/api/{api-overview.mdx => index.mdx} (100%) rename website/content/docs/nia/cli/{cli-overview.mdx => index.mdx} (100%) diff --git a/website/content/docs/nia/api/api-overview.mdx b/website/content/docs/nia/api/index.mdx similarity index 100% rename from website/content/docs/nia/api/api-overview.mdx rename to website/content/docs/nia/api/index.mdx diff --git a/website/content/docs/nia/cli/cli-overview.mdx b/website/content/docs/nia/cli/index.mdx similarity index 100% rename from website/content/docs/nia/cli/cli-overview.mdx rename to website/content/docs/nia/cli/index.mdx diff --git a/website/data/docs-nav-data.json b/website/data/docs-nav-data.json index db215a1699..db4591421b 100644 --- a/website/data/docs-nav-data.json +++ b/website/data/docs-nav-data.json @@ -584,7 +584,7 @@ "routes": [ { "title": "Overview", - "path": "nia/api/api-overview" + "path": "nia/api" }, { "title": "Status", @@ -601,7 +601,7 @@ "routes": [ { "title": "Overview", - "path": "nia/cli/cli-overview" + "path": "nia/cli" }, { "title": "task", diff --git a/website/redirects.next.js b/website/redirects.next.js index ce9d89e5f4..e0d56f276a 100644 --- a/website/redirects.next.js +++ b/website/redirects.next.js @@ -1177,6 +1177,16 @@ module.exports = [ destination: '/docs/nia/configuration', permanent: true, }, + { + source: '/docs/nia/api/api-overview', + destination: '/docs/nia/api', + permanent: true, + }, + { + source: '/docs/nia/cli/cli-overview', + destination: '/docs/nia/cli', + permanent: true, + }, { source: '/use-cases/network-middleware-automation', destination: '/use-cases/network-infrastructure-automation',