docs: add routing page (#9550)
- Add a new homepage to `book` project for the routing page - Move all main doc pages to be under `/v2/learn` (and added redirects + fixed links across docs) - Other: add admin components to resources dropdown + fixes to search on mobile. Closes DX-955 Preview: https://docs-v2-git-docs-router-page-medusajs.vercel.app/v2
This commit is contained in:
@@ -168,9 +168,9 @@ module.exports = defineConfig({
|
||||
|
||||
### Further Read
|
||||
|
||||
- [How to Create a Module](!docs!/basics/modules)
|
||||
- [How to Create a Data Model](!docs!/basics/modules#1-create-data-model)
|
||||
- [Learn more about the service factory](!docs!/advanced-development/modules/service-factory).
|
||||
- [How to Create a Module](!docs!/learn/basics/modules)
|
||||
- [How to Create a Data Model](!docs!/learn/basics/modules#1-create-data-model)
|
||||
- [Learn more about the service factory](!docs!/learn/advanced-development/modules/service-factory).
|
||||
|
||||
---
|
||||
|
||||
@@ -243,7 +243,7 @@ This defines a list link to the `Order` data model since a subscription has mult
|
||||
|
||||
### Further Reads
|
||||
|
||||
- [How to Define a Link](!docs!/advanced-development/module-links)
|
||||
- [How to Define a Link](!docs!/learn/advanced-development/module-links)
|
||||
|
||||
---
|
||||
|
||||
@@ -640,9 +640,9 @@ The workflow returns the created subscription and order.
|
||||
|
||||
### Further Reads
|
||||
|
||||
- [How to Create a Workflow](!docs!/basics/workflows)
|
||||
- [Learn more about the compensation function](!docs!/advanced-development/workflows/compensation-function)
|
||||
- [How to use the Remote Link](!docs!/advanced-development/module-links/remote-link)
|
||||
- [How to Create a Workflow](!docs!/learn/basics/workflows)
|
||||
- [Learn more about the compensation function](!docs!/learn/advanced-development/workflows/compensation-function)
|
||||
- [How to use the Remote Link](!docs!/learn/advanced-development/module-links/remote-link)
|
||||
|
||||
---
|
||||
|
||||
@@ -954,7 +954,7 @@ npm run dev
|
||||
|
||||
### Further Reads
|
||||
|
||||
- [How to Create an API Route](!docs!/basics/api-routes)
|
||||
- [How to Create an API Route](!docs!/learn/basics/api-routes)
|
||||
|
||||
---
|
||||
|
||||
@@ -1431,7 +1431,7 @@ To view a subscription’s details, click on its ID, which opens the subscriptio
|
||||
|
||||
### Further Reads
|
||||
|
||||
- [How to Create UI Routes](!docs!/advanced-development/admin/ui-routes)
|
||||
- [How to Create UI Routes](!docs!/learn/advanced-development/admin/ui-routes)
|
||||
|
||||
---
|
||||
|
||||
@@ -1983,7 +1983,7 @@ This loops over the returned subscriptions and executes the `createSubscriptionO
|
||||
|
||||
### Further Reads
|
||||
|
||||
- [How to Create a Scheduled Job](!docs!/basics/scheeduled-jobs)
|
||||
- [How to Create a Scheduled Job](!docs!/learn/basics/scheeduled-jobs)
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -33,13 +33,13 @@ You can link the subscription data model to models of other modules, such as the
|
||||
|
||||
<CardList items={[
|
||||
{
|
||||
href: "!docs!/basics/modules",
|
||||
href: "!docs!/learn/basics/modules",
|
||||
title: "Create a Module",
|
||||
text: "Learn how to create a module.",
|
||||
icon: AcademicCapSolid,
|
||||
},
|
||||
{
|
||||
href: "!docs!/basics/modules#1-create-data-model",
|
||||
href: "!docs!/learn/basics/modules#1-create-data-model",
|
||||
title: "Create a Data Model",
|
||||
text: "Learn how to create a data model.",
|
||||
icon: AcademicCapSolid,
|
||||
@@ -57,7 +57,7 @@ For example, you can link the subscription data model to the Order Module's `Ord
|
||||
If you want to create subscriptions on the product level, you can link the subscription data model to the Product Module's `Product` data model.
|
||||
|
||||
<Card
|
||||
href="!docs!/advanced-development/module-links"
|
||||
href="!docs!/learn/advanced-development/module-links"
|
||||
title="Define a Module Link"
|
||||
text="Learn how to define a module link."
|
||||
icon={AcademicCapSolid}
|
||||
@@ -81,13 +81,13 @@ Implementing the logic depends on your use case, but you'll mainly implement the
|
||||
|
||||
<CardList itemsPerRow={2} items={[
|
||||
{
|
||||
href: "!docs!/basics/api-routes",
|
||||
href: "!docs!/learn/basics/api-routes",
|
||||
title: "Create an API Route",
|
||||
text: "Learn how to create an API route.",
|
||||
icon: AcademicCapSolid,
|
||||
},
|
||||
{
|
||||
href: "!docs!/basics/scheduled-jobs",
|
||||
href: "!docs!/learn/basics/scheduled-jobs",
|
||||
title: "Create a Scheduled Job",
|
||||
text: "Learn how to create a scheduled job.",
|
||||
icon: AcademicCapSolid,
|
||||
@@ -119,13 +119,13 @@ Extend the Medusa Admin to add widgets to existing pages or add new pages.
|
||||
|
||||
<CardList items={[
|
||||
{
|
||||
href: "!docs!/advanced-development/admin/widget",
|
||||
href: "!docs!/learn/advanced-development/admin/widget",
|
||||
title: "Create Admin Widget",
|
||||
text: "Learn how to add widgets into existing admin pages.",
|
||||
icon: AcademicCapSolid,
|
||||
},
|
||||
{
|
||||
href: "!docs!/advanced-development/admin/ui-routes",
|
||||
href: "!docs!/learn/advanced-development/admin/ui-routes",
|
||||
title: "Create Admin UI Routes",
|
||||
text: "Learn how to add new pages to your Medusa Admin.",
|
||||
icon: AcademicCapSolid,
|
||||
|
||||
Reference in New Issue
Block a user