chore(web): move site under packages

This commit is contained in:
YeonGyu-Kim
2026-05-18 16:44:02 +09:00
parent 5e9a26c1c5
commit bf96794599
82 changed files with 27 additions and 27 deletions
+11
View File
@@ -0,0 +1,11 @@
import type { Metadata } from "next"
export const metadata: Metadata = {
title: "Documentation",
description:
"Configuration reference for Oh My OpenAgent. Agents, categories, skills, hooks, MCPs, and more.",
}
export default function DocsLayout({ children }: { children: React.ReactNode }) {
return children
}
+27
View File
@@ -0,0 +1,27 @@
import { getTranslations } from "next-intl/server"
import { DocsShell } from "@/components/docs/docs-shell"
import { DOC_SECTIONS } from "@/lib/docs-sections"
import { loadDocSource } from "@/lib/docs-source"
export default async function DocsPage() {
const t = await getTranslations("docs")
const sectionsWithHtml = DOC_SECTIONS.map((section) => ({
...section,
html: loadDocSource(section.file),
}))
return (
<DocsShell
mobileHeader={t("mobileHeader")}
searchPlaceholder={t("searchPlaceholder")}
sections={DOC_SECTIONS.map((s) => ({ id: s.id, title: s.title }))}
>
{sectionsWithHtml.map((section) => (
<section key={section.id} id={section.id} className="scroll-mt-24">
<article className="docs-content" dangerouslySetInnerHTML={{ __html: section.html }} />
</section>
))}
</DocsShell>
)
}