docs: improvements to deployment guides (#6183)

- Add a new deployment overview page giving a general overview of how a Medusa project is deployed
- Add a new section in all backend deployment guides related to the Medusa admin.
- Add a general deployment guide for the medusa admin.
- Add a general deployment guide for the Next.js starter
This commit is contained in:
Shahed Nasser
2024-01-24 10:22:50 +02:00
committed by GitHub
parent b3d013940f
commit 75fd6b0c83
15 changed files with 718 additions and 57 deletions

View File

@@ -4,11 +4,22 @@ import {
} from "@docusaurus/theme-common/internal"
import { PropSidebarItem } from "@docusaurus/plugin-content-docs"
export default function getFirstCategoryItem(
categoryLabel: string
): PropSidebarItem | undefined {
type Options = {
categoryLabel?: string
categoryCustomId?: string
}
export function getCategoryItems({ categoryLabel, categoryCustomId }: Options) {
return findSidebarCategory(
useDocsSidebar().items,
(item) => item.label === categoryLabel
)?.items[0]
(item) =>
item.label === categoryLabel ||
item.customProps.category_id === categoryCustomId
)?.items
}
export default function getFirstCategoryItem(
options: Options
): PropSidebarItem | undefined {
return getCategoryItems(options)?.[0]
}