| 1 | import { DocsSearch } from "@/components/docs-search"; |
| 2 | import { buildPageMetadata } from "@/lib/page-meta"; |
| 3 | |
| 4 | export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { |
| 5 | const { locale } = await params; |
| 6 | const isZh = locale === "zh"; |
| 7 | return buildPageMetadata({ |
| 8 | path: "/docs", |
| 9 | locale, |
| 10 | title: isZh ? "文档 · Codewhale" : "Docs · Codewhale", |
| 11 | description: isZh |
| 12 | ? "Codewhale 文档:安装、使用指南、配置、提供商、核心概念、工具、MCP、技能、沙箱、运行时 API、排障。" |
| 13 | : "Codewhale documentation: install, user guide, configuration, providers, core concepts, tools, MCP, skills, sandbox, runtime API, troubleshooting.", |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | export default async function DocsHubPage({ params }: { params: Promise<{ locale: string }> }) { |
| 18 | const { locale } = await params; |
| 19 | return <DocsSearch locale={locale} />; |
| 20 | } |
| 21 |