From 8db87dfb10683c5bd2602d41399a2950afaf4b2b Mon Sep 17 00:00:00 2001 From: Max Wolfs Date: Wed, 22 Nov 2023 17:53:30 +0100 Subject: [PATCH] Adjust osism guides location (#118) * fix new location of guides Signed-off-by: Max Wolfs * remove old location Signed-off-by: Max Wolfs * remove empty entry Signed-off-by: Max Wolfs * fix links Signed-off-by: Max Wolfs --------- Signed-off-by: Max Wolfs --- .gitignore | 1 + docs.package.json | 6 ------ docusaurus.config.js | 8 +++---- sidebarsDocs.js | 50 +++++++++++++++++--------------------------- src/pages/index.tsx | 2 +- 5 files changed, 25 insertions(+), 42 deletions(-) diff --git a/.gitignore b/.gitignore index 9566ad0190..762c08ebaa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Content Dependencies from docs.package.json /repo_to_be_edited_ /docs/02-iaas/components +/docs/02-iaas/guides /docs/02-iaas/guides/configuration-guides /docs/02-iaas/guides/deploy-guide /docs/02-iaas/guides/operations-guide diff --git a/docs.package.json b/docs.package.json index 3dac6a4e7b..454a3eb037 100644 --- a/docs.package.json +++ b/docs.package.json @@ -35,12 +35,6 @@ "target": "standards", "label": "" }, - { - "repo": "osism/osism.github.io", - "source": "docs/advanced-guides", - "target": "docs/02-iaas/deployment-examples", - "label": "cloud-in-a-box" - }, { "repo": "osism/osism.github.io", "source": "docs/guides", diff --git a/docusaurus.config.js b/docusaurus.config.js index 0ed329da15..53f047d6f6 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -48,10 +48,10 @@ const config = { '@docusaurus/plugin-client-redirects', { redirects: [ - { - to: '/docs/iaas/deployment-examples/testbed', - from: '/docs/category/osism-testbed/' - } + // { + // to: '/docs/iaas/deployment-examples/testbed', + // from: '/docs/category/osism-testbed/' + // } ], createRedirects(existingPath) { if (existingPath.includes('/community')) { diff --git a/sidebarsDocs.js b/sidebarsDocs.js index 287fd09ba2..09c95612b4 100644 --- a/sidebarsDocs.js +++ b/sidebarsDocs.js @@ -37,37 +37,25 @@ const sidebarsDocs = { // // 'iaas/overview/knowledge' // ] // }, - { - type: 'category', - label: 'Deployment Examples', - link: { - type: 'generated-index' - }, - items: [ - { - type: 'category', - label: 'Testbed', - link: { - slug: 'iaas/deployment-examples/testbed', - type: 'generated-index' - }, - items: [ - 'iaas/deployment-examples/cloud-in-a-box/advanced-guides/testbed' - ] - }, - { - type: 'category', - label: 'Cloud in a Box', - link: { - slug: 'iaas/deployment-examples/cloud-in-a-box', - type: 'generated-index' - }, - items: [ - 'iaas/deployment-examples/cloud-in-a-box/advanced-guides/cloud-in-a-box' - ] - } - ] - }, + // { + // type: 'category', + // label: 'Deployment Examples', + // link: { + // type: 'generated-index' + // }, + // items: [ + // { + // type: 'doc', + // label: 'Testbed', + // id: 'iaas/guides/deploy-guide/examples/testbed' + // }, + // { + // type: 'doc', + // label: 'Cloud in a Box', + // id: 'iaas/guides/deploy-guide/examples/cloud-in-a-box' + // } + // ] + // }, // { // type: 'category', // label: 'Guides', diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ada8ca876e..ce5fb44016 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -56,7 +56,7 @@ const AdditionalResourcesData = [ { title: 'Deployment Examples', body: 'Get to know different ways to deploy SCS with cloud resources or on bare metal.', - url: '/docs/category/deployment-examples', + url: '/docs/iaas/guides/deploy-guide/examples', buttonText: 'Explore Cases' } ]