- Add docs pages (getting-started, changelog, keyboard-shortcuts) - Add blog, community, and legal pages (privacy, terms, EULA) - Add site header, footer, download button, and nav components - Add sitemap and robots.txt generation - Narrow main page container (max-w-2xl), fix footer positioning - Switch README feature list to colon style
30 lines
578 B
TypeScript
30 lines
578 B
TypeScript
import type { Metadata } from "next";
|
|
import { DocsNav } from "./docs-nav";
|
|
import { SiteHeader } from "../components/site-header";
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
template: "%s — cmux docs",
|
|
default: "cmux docs",
|
|
},
|
|
openGraph: {
|
|
siteName: "cmux",
|
|
type: "article",
|
|
},
|
|
alternates: {
|
|
canonical: "./",
|
|
},
|
|
};
|
|
|
|
export default function DocsLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<div className="min-h-screen">
|
|
<SiteHeader section="docs" />
|
|
<DocsNav>{children}</DocsNav>
|
|
</div>
|
|
);
|
|
}
|