From f2b4481b1f10cb386e3f2dbde437543b551b2d51 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 9 Feb 2022 12:02:50 +0200 Subject: [PATCH] Rearranged sidebar links (#1022) * Rearranged sidebar links * change quick start to quickstart --- .../0-set-up-your-development-environment.md | 2 +- .../tutorial/1-creating-your-medusa-server.md | 2 +- .../tutorial/2-adding-custom-functionality.md | 2 +- ...ng-your-local-project-with-medusa-cloud.md | 2 +- www/docs/docusaurus.config.js | 9 +- www/docs/sidebars.js | 205 +++++++++--------- 6 files changed, 106 insertions(+), 116 deletions(-) diff --git a/docs/content/tutorial/0-set-up-your-development-environment.md b/docs/content/tutorial/0-set-up-your-development-environment.md index 48583f1b00..fe0ff27c8e 100644 --- a/docs/content/tutorial/0-set-up-your-development-environment.md +++ b/docs/content/tutorial/0-set-up-your-development-environment.md @@ -1,5 +1,5 @@ --- -title: 0. Set up your development environment +title: Set up your development environment --- # Set up your development environment diff --git a/docs/content/tutorial/1-creating-your-medusa-server.md b/docs/content/tutorial/1-creating-your-medusa-server.md index 99b73bd7d1..325ab32f6d 100644 --- a/docs/content/tutorial/1-creating-your-medusa-server.md +++ b/docs/content/tutorial/1-creating-your-medusa-server.md @@ -1,5 +1,5 @@ --- -title: 1. Creating your Medusa server +title: Creating your Medusa server --- # Creating your Medusa server diff --git a/docs/content/tutorial/2-adding-custom-functionality.md b/docs/content/tutorial/2-adding-custom-functionality.md index 8c75dacf7d..613afb522a 100644 --- a/docs/content/tutorial/2-adding-custom-functionality.md +++ b/docs/content/tutorial/2-adding-custom-functionality.md @@ -1,5 +1,5 @@ --- -title: 2. Adding custom functionality +title: Adding custom functionality --- # Adding custom functionality diff --git a/docs/content/tutorial/3-linking-your-local-project-with-medusa-cloud.md b/docs/content/tutorial/3-linking-your-local-project-with-medusa-cloud.md index e222f11882..b21280186c 100644 --- a/docs/content/tutorial/3-linking-your-local-project-with-medusa-cloud.md +++ b/docs/content/tutorial/3-linking-your-local-project-with-medusa-cloud.md @@ -1,5 +1,5 @@ --- -title: 3. Linking your local project with Medusa Cloud +title: Linking your local project with Medusa Cloud --- # Linking your local project with Medusa Cloud diff --git a/www/docs/docusaurus.config.js b/www/docs/docusaurus.config.js index 246e0f4f0b..86e52e120b 100644 --- a/www/docs/docusaurus.config.js +++ b/www/docs/docusaurus.config.js @@ -48,17 +48,12 @@ module.exports = { items: [ { href: "https://docs.medusajs.com", - label: "Overview", - }, - { - type: "doc", - docId: "tutorial/set-up-your-development-environment", - label: "Tutorial", + label: "Introduction", }, { href: `https://docs.medusajs.com/api/store`, target: "_self", - label: "Reference", + label: "API Reference", }, { href: "https://github.com/medusajs/medusa", diff --git a/www/docs/sidebars.js b/www/docs/sidebars.js index f4cde36fa4..8090faf2f7 100644 --- a/www/docs/sidebars.js +++ b/www/docs/sidebars.js @@ -14,57 +14,131 @@ module.exports = { { type: "doc", id: "homepage", - label: "Overview", + label: "Introduction", }, { type: "doc", id: "quickstart/quick-start", - label: "Quickstart", + label: "Quickstart Guide", }, { type: "category", collapsed: false, - label: "Storefront starters", - items: [ - { - type: "doc", - id: "starters/gatsby-medusa-starter", - label: "Quickstart: Gatsby", - }, - { - type: "doc", - id: "starters/nextjs-medusa-starter", - label: "Quickstart: Next.js", - }, - ], - }, - { - type: "category", - label: "Tutorial", - collapsed: false, + label: "Usage Guides", items: [ { type: "doc", id: "tutorial/set-up-your-development-environment", + label: "Set Up your Development Environment" }, { type: "doc", id: "tutorial/creating-your-medusa-server", + label: "Create your Medusa Server" + }, + { + type: "category", + collapsed: true, + label: "Storefront Quickstart", + items: [ + { + type: "doc", + id: "starters/gatsby-medusa-starter", + label: "Quickstart: Gatsby", + }, + { + type: "doc", + id: "starters/nextjs-medusa-starter", + label: "Quickstart: Next.js", + }, + { + type: "doc", + id: "how-to/setting-up-a-nextjs-storefront-for-your-medusa-project", + label: "Set Up a Next.js Storefront for your Medusa Project" + }, + ], }, { type: "doc", - id: "tutorial/adding-custom-functionality", + id: "how-to/create-medusa-app", }, - ], + { + type: "category", + label: "Deployment", + items: [ + { + type: "doc", + id: "how-to/deploying-on-heroku", + label: "Deploy: Heroku", + }, + { + type: "doc", + id: "how-to/deploying-on-qovery", + label: "Deploy: Qovery", + }, + { + type: "doc", + id: "how-to/deploying-on-digital-ocean", + label: "Deploy: DigitalOcean", + }, + { + type: "doc", + id: "how-to/deploying-admin-on-netlify", + label: "Deploy: Admin on Netlify", + }, + { + type: "doc", + id: "how-to/deploying-gatsby-on-netlify", + label: "Deploy: Gatsby on Netlify", + }, + ], + }, + ] }, { type: "category", - label: "How to", + label: "Advanced Guide", + collapsed: false, items: [ { - type: "doc", - id: "how-to/notification-api", - }, + type: "category", + label: "Medusa Server", + collapsed: true, + items: [ + { + type: "doc", + id: "tutorial/adding-custom-functionality", + label: "Add Custom Functionality" + }, + { + type: "doc", + id: "how-to/notification-api", + }, + { + type: "doc", + id: "guides/fulfillment-api", + }, + { + type: "doc", + id: "guides/plugins", + }, + { + type: "doc", + id: "guides/checkouts", + }, + { + type: "doc", + id: "guides/carts-in-medusa", + }, + ] + } + ] + }, + { + type: "category", + label: "Integrations", + collapsed: false, + items: [ { type: "category", label: "Gatsby + Contentful + Medusa", @@ -79,54 +153,6 @@ module.exports = { }, ], }, - { - type: "doc", - id: "how-to/setting-up-a-nextjs-storefront-for-your-medusa-project", - }, - { - type: "doc", - id: "how-to/create-medusa-app", - }, - { - type: "doc", - id: "how-to/uploading-images-to-spaces", - }, - { - type: "doc", - id: "how-to/uploading-images-to-s3", - }, - { - type: "doc", - id: "how-to/uploading-images-to-minio", - }, - ], - }, - { - type: "category", - label: "Guides", - items: [ - { - type: "doc", - id: "guides/fulfillment-api", - }, - { - type: "doc", - id: "guides/plugins", - }, - { - type: "doc", - id: "guides/checkouts", - }, - { - type: "doc", - id: "guides/carts-in-medusa", - }, - ], - }, - { - type: "category", - label: "Add a plugin", - items: [ { type: "doc", id: "add-plugins/contentful", @@ -194,37 +220,6 @@ module.exports = { }, ], }, - { - type: "category", - label: "Deployment", - items: [ - { - type: "doc", - id: "how-to/deploying-on-heroku", - label: "Deploy: Heroku", - }, - { - type: "doc", - id: "how-to/deploying-on-qovery", - label: "Deploy: Qovery", - }, - { - type: "doc", - id: "how-to/deploying-on-digital-ocean", - label: "Deploy: DigitalOcean", - }, - { - type: "doc", - id: "how-to/deploying-admin-on-netlify", - label: "Deploy: Admin on Netlify", - }, - { - type: "doc", - id: "how-to/deploying-gatsby-on-netlify", - label: "Deploy: Gatsby on Netlify", - }, - ], - }, { type: "category", label: "Troubleshooting",