import type { Metadata } from "next";
import DocsPageClient from "./DocsPageClient";
import { BreadcrumbJsonLd, WebPageJsonLd } from "@/components/seo";

const BASE_URL = "https://llmhosts.com";

export const metadata: Metadata = {
  title: "Documentation — Setup, API, and Configuration",
  description:
    "Get started with LLMHosts. Installation, CLI commands, API reference, router configuration, and deployment guides.",
  alternates: {
    canonical: `${BASE_URL}/docs`,
  },
  openGraph: {
    title: "LLMHosts Documentation — Setup, API, and Configuration",
    description:
      "Get started with LLMHosts. Installation, CLI commands, API reference, and deployment guides.",
    url: `${BASE_URL}/docs`,
    siteName: "LLMHosts",
    type: "website",
    images: [
      {
        url: `${BASE_URL}/og?page=docs`,
        width: 1200,
        height: 630,
        alt: "LLMHosts Documentation",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "LLMHosts Documentation",
    description:
      "Installation, CLI commands, API reference, router configuration, and deployment guides.",
    images: [`${BASE_URL}/og?page=docs`],
  },
};

export default function DocsPage() {
  return (
    <>
      <BreadcrumbJsonLd
        items={[
          { name: "Home", url: BASE_URL },
          { name: "Documentation", url: `${BASE_URL}/docs` },
        ]}
      />
      <WebPageJsonLd
        name="LLMHosts Documentation — Setup, API, and Configuration"
        description="Get started with LLMHosts. Installation, CLI commands, API reference, router configuration, and deployment guides."
        url={`${BASE_URL}/docs`}
      />
      <DocsPageClient />
    </>
  );
}
