diff --git a/docs/bob/hello.md b/docs/bob/hello.md deleted file mode 100644 index 37a1555..0000000 --- a/docs/bob/hello.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 'Hello' -published: '2024-10-06' -summary: 'petentium usu tota noluisse errem elaboraret auctor.' ---- - -# hello \ No newline at end of file diff --git a/docs/bob/hey.md b/docs/bob/hey.md deleted file mode 100644 index abbdd85..0000000 --- a/docs/bob/hey.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 'Hey' -published: '2024-10-06' -summary: 'petentium usu tota noluisse errem elaboraret auctor.' ---- - -# hey \ No newline at end of file diff --git a/docs/bob/hi.md b/docs/bob/hi.md deleted file mode 100644 index 80b62d2..0000000 --- a/docs/bob/hi.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 'Hi' -published: '2024-10-06' -summary: 'petentium usu tota noluisse errem elaboraret auctor.' ---- - -# hi \ No newline at end of file diff --git a/docs/intro.md b/docs/intro.md deleted file mode 100644 index 407f306..0000000 --- a/docs/intro.md +++ /dev/null @@ -1,293 +0,0 @@ ---- -title: '🚀 Introduction' -published: '2024-10-06' -summary: 'petentium usu tota noluisse errem elaboraret auctor.' ---- - -# Get started with Pulse App! -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# an mel dissentiunt ponderum eius dicant adhuc, -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# vim an explicari eirmod pro singulis scripta iaculis fermentum. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# eruditi propriae vulputate elit venenatis reprehendunt delectus. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# dicunt antiopam ultricies nisl egestas voluptatibus harum, -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# viverra senserit cursus theophrastus elaboraret iudicabit ligula. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# posidonium dicat eum nostra auctor quaeque harum -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# doctus primis disputationi atqui magnis himenaeos fastidii -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# ligula cras prodesset litora ridens docendi euripidis -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# efficitur detraxit detraxit fames appareat mutat elit -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# donec nominavi qui dolorum adversarium eum eleifend -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. - -# nunc contentiones numquam pharetra his vero solum -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. -petentium usu tota noluisse errem elaboraret auctor. \ No newline at end of file diff --git a/docs/intro.mdx b/docs/intro.mdx new file mode 100644 index 0000000..2e97a90 --- /dev/null +++ b/docs/intro.mdx @@ -0,0 +1,30 @@ +--- +title: '🚀 Introduction' +published: '2024-10-06' +summary: 'petentium usu tota noluisse errem elaboraret auctor.' +--- + +> [!IMPORTANT] +> These docs are currently a work in progress and are subject to change. + +# Pulse App + + A lightweight service monitoring solution for tracking the availability of whatever service your heart desires! + + +## Getting Started +Let's get you up and running—this will only take a few minutes! Start by [creating your account](#creating-your-account) and +making your first status page. You can do this on our cloud or on your [own instance](/self-hosting). Once done, you can add +your services and start monitoring them. See [Next Steps](#next-steps) for more. + +### Creating your Account +- First, head to our [Dashboard](https://pulseapp.cc/dashboard) and fill out the form. ![Registering](https://cdn.rainnny.club/auhNOjrcYz6u.png) +- Next, complete the onboarding process and set up your first organization, and status page. ![Onboarding](https://cdn.rainnny.club/AfDgjHG5QTpZ.png) +- Finally, you can [start monitoring your services](#next-steps)! + +### Next Steps +#### Components +... + +#### Automations +... \ No newline at end of file diff --git a/public/media/docs/register.png b/public/media/docs/register.png new file mode 100644 index 0000000..00b3641 Binary files /dev/null and b/public/media/docs/register.png differ diff --git a/src/app/[[...slug]]/page.tsx b/src/app/[[...slug]]/page.tsx index a2b979b..8f88dc0 100644 --- a/src/app/[[...slug]]/page.tsx +++ b/src/app/[[...slug]]/page.tsx @@ -44,7 +44,7 @@ const DocsPage = async ({ return (
{/* Breadcrumb */} - + {splitSlug.map( (part: string, index: number): ReactElement => { diff --git a/src/components/docs-footer.tsx b/src/components/docs-footer.tsx index f5e7d47..1b70fc4 100644 --- a/src/components/docs-footer.tsx +++ b/src/components/docs-footer.tsx @@ -53,7 +53,9 @@ const DocsFooter = ({ {/* Pages */} - + {previous || next ? ( + + ) : undefined}
{/* Previous */} {previous && ( diff --git a/src/components/mdx.tsx b/src/components/mdx.tsx index d8771aa..da53109 100644 --- a/src/components/mdx.tsx +++ b/src/components/mdx.tsx @@ -1,12 +1,46 @@ -import { ReactElement, ReactNode } from "react"; +import { isValidElement, ReactElement, ReactNode } from "react"; import { MDXRemote } from "remote-mdx/rsc"; import { cn } from "@/lib/utils"; import remarkGfm from "remark-gfm"; +import { + Activity, + CircleAlert, + Lightbulb, + MessageSquareWarning, + OctagonAlert, + TriangleAlert, +} from "lucide-react"; +import Link from "next/link"; +import { capitalizeWords } from "@/lib/string"; + +const blockquoteStyles: { [key: string]: any } = { + NOTE: { + icon: , + style: "text-[#1F6FEB] border-[#1F6FEB]", + }, + TIP: { + icon: , + style: "text-[#4A8BD5] border-[#4A8BD5]", + }, + IMPORTANT: { + icon: , + style: "text-[#8957E5] border-[#8957E5]", + }, + WARNING: { + icon: , + style: "text-[#9E6A03] border-[#9E6A03]", + }, + CAUTION: { + icon: , + style: "text-[#DA3633] border-[#DA3633]", + }, +}; /** * The MDX components to style. */ const components = { + // Headings h1: ({ children }: { children: ReactNode }): ReactElement => ( {children} @@ -37,6 +71,8 @@ const components = { {children} ), + + // Text a: ({ href, children, @@ -44,19 +80,57 @@ const components = { href: string; children: ReactNode; }): ReactElement => ( - {children} - + ), p: ({ children }: { children: ReactNode }): ReactElement => ( -

{children}

+

{children}

), + + // Media + img: ({ src, alt }: { src: string; alt: string }): ReactElement => ( + {alt} + ), + + // Lists ul: ({ children }: { children: ReactNode }): ReactElement => ( -
    {children}
+
    {children}
), + + // Blockquotes + blockquote: ({ children }: { children: ReactNode }): ReactElement => { + const match = extractBlockQuoteText(children).match( + /^\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)]\s*(.*)/i + ); + let style: any; + if (!match || !(style = blockquoteStyles[match[1]])) { + return
{children}
; + } + return ( +
+

+ {style.icon} + {capitalizeWords(match[1])} +

+

{match[2]}

+
+ ); + }, }; /** @@ -71,6 +145,8 @@ export const CustomMDX = (props: any): ReactElement => ( components={{ ...components, ...(props.components || {}), + Link, + Activity, }} options={{ mdxOptions: { @@ -83,6 +159,7 @@ export const CustomMDX = (props: any): ReactElement => ( /** * A heading component. * + * @param as the type of heading * @param className the class name of the heading * @param size the size of the heading * @param children the children within the heading @@ -104,7 +181,11 @@ const Heading = ({ return ( = 2 && "pt-7", className)} + className={cn( + "py-3 font-bold select-none", + size >= 2 && "pt-7", + className + )} > {children} @@ -117,3 +198,16 @@ const slugify = (text: string): string => .replace(/[^\w\s-]/g, "") .replace(/[\s_-]+/g, "-") .trim(); + +const extractBlockQuoteText = (node: ReactNode): string => { + if (typeof node === "string") { + return node; + } + if (Array.isArray(node)) { + return node.map(extractBlockQuoteText).join(""); + } + if (isValidElement(node)) { + return extractBlockQuoteText(node.props.children); + } + return ""; +}; diff --git a/src/components/on-this-page.tsx b/src/components/on-this-page.tsx index 5bd255f..c13f8c0 100644 --- a/src/components/on-this-page.tsx +++ b/src/components/on-this-page.tsx @@ -127,7 +127,7 @@ const OnThisPage = ({ page }: { page: DocsContentMetadata }): ReactElement => { {/* Footer */}
- +
diff --git a/src/components/theme-switcher.tsx b/src/components/theme-switcher.tsx index e32b9bf..03619c9 100644 --- a/src/components/theme-switcher.tsx +++ b/src/components/theme-switcher.tsx @@ -6,6 +6,8 @@ import { UseThemeProps } from "next-themes/dist/types"; import { Monitor, MoonStar, Sun } from "lucide-react"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; +import SimpleTooltip from "@/components/simple-tooltip"; +import { capitalizeWords } from "@/lib/string"; const themes = { dark: , @@ -31,18 +33,22 @@ const ThemeSwitcher = (): ReactElement => { {Object.entries(themes).map(([theme, icon]) => { const active: boolean = mounted && theme === activeTheme; return ( - + + ); })}