add veryyyy basic docs renderer

This commit is contained in:
Lee
2024-04-20 00:34:42 +01:00
parent d0f926f330
commit 8169c08faa
11 changed files with 2011 additions and 11 deletions

View File

@ -0,0 +1,10 @@
import { MDXRemote } from "remote-mdx/rsc";
const components = {
h1: (props: any) => <h1 className="text-2xl font-semibold pb-2" {...props} />,
h2: (props: any) => <h1 className="text-xl font-semibold pb-2 pt-4" {...props} />,
};
export function CustomMDX(props: any) {
return <MDXRemote {...props} components={{ ...components, ...(props.components || {}) }} />;
}

View File

@ -32,6 +32,7 @@ const pages: Page[] = [
{ name: "Server", url: "/server/java" },
{ name: "Mojang", url: "/mojang/status" },
{ name: "API", url: "https://api.mcutils.xyz", openInNewTab: true },
{ name: "Docs", url: "/documentation", openInNewTab: true },
];
export default function NavBar(): ReactElement {