docs: add 404 page (#8260)

This commit is contained in:
Shahed Nasser
2024-07-24 17:07:30 +03:00
committed by GitHub
parent 7a0941e997
commit ccc99b48a0
5 changed files with 248 additions and 0 deletions

View 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 />
}
]}
/>

View 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 />
}
]}
/>

View 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 />
}
]}
/>

View 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&apos;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>
)
}

View 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 />
}
]}
/>