forked from medusajs/medusa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add routing page (medusajs#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
- Loading branch information
1 parent
fe445a8
commit 7eb1b55
Showing
223 changed files
with
2,549 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Inter, Roboto_Mono } from "next/font/google" | ||
|
||
export const inter = Inter({ | ||
subsets: ["latin"], | ||
variable: "--font-inter", | ||
weight: ["400", "500"], | ||
}) | ||
|
||
export const robotoMono = Roboto_Mono({ | ||
subsets: ["latin"], | ||
variable: "--font-roboto-mono", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { TightLayout } from "docs-ui" | ||
import Feedback from "@/components/Feedback" | ||
import EditButton from "@/components/EditButton" | ||
import Providers from "../../providers" | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode | ||
}) { | ||
return ( | ||
<TightLayout | ||
sidebarProps={{ | ||
expandItems: true, | ||
}} | ||
showPagination={true} | ||
feedbackComponent={<Feedback className="my-2" />} | ||
editComponent={<EditButton />} | ||
ProvidersComponent={Providers} | ||
> | ||
{children} | ||
</TightLayout> | ||
) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { TightLayout } from "docs-ui" | ||
import Feedback from "../components/Feedback" | ||
import EditButton from "../components/EditButton" | ||
import NotFoundContent from "./_not-found.mdx" | ||
import Providers from "../providers" | ||
|
||
const NotFoundPage = () => { | ||
return ( | ||
<TightLayout | ||
sidebarProps={{ | ||
expandItems: true, | ||
}} | ||
showPagination={true} | ||
feedbackComponent={<Feedback className="my-2" />} | ||
editComponent={<EditButton />} | ||
ProvidersComponent={Providers} | ||
> | ||
<NotFoundContent /> | ||
</TightLayout> | ||
) | ||
} | ||
|
||
export default NotFoundPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import clsx from "clsx" | ||
import { MainNav, RootProviders } from "docs-ui" | ||
import HomepageTopSection from "../components/Homepage/TopSection" | ||
import Providers from "../providers" | ||
import HomepageLinksSection from "../components/Homepage/LinksSection" | ||
import HomepageRecipesSection from "../components/Homepage/RecipesSection" | ||
import HomepageModulesSection from "../components/Homepage/ModulesSection" | ||
import HomepageFooter from "../components/Homepage/Footer" | ||
|
||
const Homepage = () => { | ||
return ( | ||
<body | ||
className={clsx( | ||
"bg-medusa-bg-subtle font-base text-medium w-full", | ||
"text-medusa-fg-subtle px-0.25 pt-0.25", | ||
"h-screen overflow-hidden" | ||
)} | ||
> | ||
<RootProviders> | ||
<Providers> | ||
<div | ||
className={clsx( | ||
"rounded-t bg-medusa-bg-base", | ||
"shadow-elevation-card-rest dark:shadow-elevation-card-rest-dark", | ||
"h-full w-full", | ||
"overflow-y-scroll overflow-x-hidden" | ||
)} | ||
id="main" | ||
> | ||
<MainNav | ||
className="border-b border-medusa-border-base" | ||
itemsClassName={clsx( | ||
"!my-1 [&_li_div]:!text-medusa-fg-subtle [&_li_a]:!text-medusa-fg-subtle", | ||
"hover:[&_li_div]:!text-medusa-fg-base hover:[&_li_a]:!text-medusa-fg-base" | ||
)} | ||
/> | ||
<HomepageTopSection /> | ||
<HomepageLinksSection /> | ||
<HomepageRecipesSection /> | ||
<HomepageModulesSection /> | ||
<HomepageFooter /> | ||
</div> | ||
</Providers> | ||
</RootProviders> | ||
</body> | ||
) | ||
} | ||
|
||
export default Homepage |
Oops, something went wrong.