docs: add 404 page (#8260)
This commit is contained in:
47
www/apps/book/app/not-found.mdx
Normal file
47
www/apps/book/app/not-found.mdx
Normal file
@@ -0,0 +1,47 @@
|
||||
import { CardList } from "docs-ui"
|
||||
import {
|
||||
BookOpen,
|
||||
AcademicCapSolid,
|
||||
ComputerDesktopSolid,
|
||||
BuildingStorefront
|
||||
} from "@medusajs/icons"
|
||||
|
||||
export const metadata = {
|
||||
title: `Page Not Found`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
The page you were looking for isn't available.
|
||||
|
||||
If you think this is a mistake, please [report this issue on GitHub](https://github.com/medusajs/medusa/issues/new?assignees=&labels=type%3A+docs&template=docs.yml).
|
||||
|
||||
<CardList
|
||||
itemsPerRow={2}
|
||||
items={[
|
||||
{
|
||||
title: "Get Started Docs",
|
||||
href: "/",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BookOpen />
|
||||
},
|
||||
{
|
||||
title: "Learning Resources",
|
||||
href: "!resources!",
|
||||
showLinkIcon: false,
|
||||
startIcon: <AcademicCapSolid />
|
||||
},
|
||||
{
|
||||
title: "Admin API reference",
|
||||
href: "!api!/admin",
|
||||
showLinkIcon: false,
|
||||
startIcon: <ComputerDesktopSolid />
|
||||
},
|
||||
{
|
||||
title: "Store API reference",
|
||||
href: "!api!/store",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BuildingStorefront />
|
||||
}
|
||||
]}
|
||||
/>
|
||||
47
www/apps/resources/app/not-found.mdx
Normal file
47
www/apps/resources/app/not-found.mdx
Normal file
@@ -0,0 +1,47 @@
|
||||
import { CardList } from "docs-ui"
|
||||
import {
|
||||
BookOpen,
|
||||
AcademicCapSolid,
|
||||
ComputerDesktopSolid,
|
||||
BuildingStorefront
|
||||
} from "@medusajs/icons"
|
||||
|
||||
export const metadata = {
|
||||
title: `Page Not Found`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
The page you were looking for isn't available.
|
||||
|
||||
If you think this is a mistake, please [report this issue on GitHub](https://github.com/medusajs/medusa/issues/new?assignees=&labels=type%3A+docs&template=docs.yml).
|
||||
|
||||
<CardList
|
||||
itemsPerRow={2}
|
||||
items={[
|
||||
{
|
||||
title: "Get Started Docs",
|
||||
href: "/",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BookOpen />
|
||||
},
|
||||
{
|
||||
title: "Learning Resources",
|
||||
href: "!resources!",
|
||||
showLinkIcon: false,
|
||||
startIcon: <AcademicCapSolid />
|
||||
},
|
||||
{
|
||||
title: "Admin API reference",
|
||||
href: "!api!/admin",
|
||||
showLinkIcon: false,
|
||||
startIcon: <ComputerDesktopSolid />
|
||||
},
|
||||
{
|
||||
title: "Store API reference",
|
||||
href: "!api!/store",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BuildingStorefront />
|
||||
}
|
||||
]}
|
||||
/>
|
||||
47
www/apps/ui/src/app/not-found.mdx
Normal file
47
www/apps/ui/src/app/not-found.mdx
Normal file
@@ -0,0 +1,47 @@
|
||||
import { CardList } from "docs-ui"
|
||||
import {
|
||||
BookOpen,
|
||||
AcademicCapSolid,
|
||||
ComputerDesktopSolid,
|
||||
BuildingStorefront
|
||||
} from "@medusajs/icons"
|
||||
|
||||
export const metadata = {
|
||||
title: `Page Not Found`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
The page you were looking for isn't available.
|
||||
|
||||
If you think this is a mistake, please [report this issue on GitHub](https://github.com/medusajs/medusa/issues/new?assignees=&labels=type%3A+docs&template=docs.yml).
|
||||
|
||||
<CardList
|
||||
itemsPerRow={2}
|
||||
items={[
|
||||
{
|
||||
title: "Get Started Docs",
|
||||
href: "/",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BookOpen />
|
||||
},
|
||||
{
|
||||
title: "Learning Resources",
|
||||
href: "!resources!",
|
||||
showLinkIcon: false,
|
||||
startIcon: <AcademicCapSolid />
|
||||
},
|
||||
{
|
||||
title: "Admin API reference",
|
||||
href: "!api!/admin",
|
||||
showLinkIcon: false,
|
||||
startIcon: <ComputerDesktopSolid />
|
||||
},
|
||||
{
|
||||
title: "Store API reference",
|
||||
href: "!api!/store",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BuildingStorefront />
|
||||
}
|
||||
]}
|
||||
/>
|
||||
60
www/apps/ui/src/app/not-found.tsx
Normal file
60
www/apps/ui/src/app/not-found.tsx
Normal file
@@ -0,0 +1,60 @@
|
||||
import type { Metadata } from "next"
|
||||
import Link from "next/link"
|
||||
import { CardList, MDXComponents } from "docs-ui"
|
||||
import {
|
||||
BookOpen,
|
||||
AcademicCapSolid,
|
||||
ComputerDesktopSolid,
|
||||
BuildingStorefront,
|
||||
} from "@medusajs/icons"
|
||||
|
||||
const H1 = MDXComponents.h1!
|
||||
const P = MDXComponents.p!
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Page Not Found",
|
||||
}
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<div>
|
||||
<H1>Page Not Found</H1>
|
||||
<P>The page you were looking for isn't available.</P>
|
||||
<P>
|
||||
If you think this is a mistake, please
|
||||
<Link href="https://github.com/medusajs/medusa/issues/new?assignees=&labels=type%3A+docs&template=docs.yml">
|
||||
report this issue on GitHub
|
||||
</Link>
|
||||
</P>
|
||||
<CardList
|
||||
itemsPerRow={2}
|
||||
items={[
|
||||
{
|
||||
title: "Get Started Docs",
|
||||
href: "/",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BookOpen />,
|
||||
},
|
||||
{
|
||||
title: "Learning Resources",
|
||||
href: "!resources!",
|
||||
showLinkIcon: false,
|
||||
startIcon: <AcademicCapSolid />,
|
||||
},
|
||||
{
|
||||
title: "Admin API reference",
|
||||
href: "!api!/admin",
|
||||
showLinkIcon: false,
|
||||
startIcon: <ComputerDesktopSolid />,
|
||||
},
|
||||
{
|
||||
title: "Store API reference",
|
||||
href: "!api!/store",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BuildingStorefront />,
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
47
www/apps/user-guide/app/not-found.mdx
Normal file
47
www/apps/user-guide/app/not-found.mdx
Normal file
@@ -0,0 +1,47 @@
|
||||
import { CardList } from "docs-ui"
|
||||
import {
|
||||
BookOpen,
|
||||
AcademicCapSolid,
|
||||
ComputerDesktopSolid,
|
||||
BuildingStorefront
|
||||
} from "@medusajs/icons"
|
||||
|
||||
export const metadata = {
|
||||
title: `Page Not Found`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
The page you were looking for isn't available.
|
||||
|
||||
If you think this is a mistake, please [report this issue on GitHub](https://github.com/medusajs/medusa/issues/new?assignees=&labels=type%3A+docs&template=docs.yml).
|
||||
|
||||
<CardList
|
||||
itemsPerRow={2}
|
||||
items={[
|
||||
{
|
||||
title: "Get Started Docs",
|
||||
href: "/",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BookOpen />
|
||||
},
|
||||
{
|
||||
title: "Learning Resources",
|
||||
href: "!resources!",
|
||||
showLinkIcon: false,
|
||||
startIcon: <AcademicCapSolid />
|
||||
},
|
||||
{
|
||||
title: "Admin API reference",
|
||||
href: "!api!/admin",
|
||||
showLinkIcon: false,
|
||||
startIcon: <ComputerDesktopSolid />
|
||||
},
|
||||
{
|
||||
title: "Store API reference",
|
||||
href: "!api!/store",
|
||||
showLinkIcon: false,
|
||||
startIcon: <BuildingStorefront />
|
||||
}
|
||||
]}
|
||||
/>
|
||||
Reference in New Issue
Block a user