add veryyyy basic docs renderer
This commit is contained in:
10
src/app/components/mx-components.tsx
Normal file
10
src/app/components/mx-components.tsx
Normal 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 || {}) }} />;
|
||||
}
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user