From b498c55819bd8fabfaa2dde388e1982c2bbd32fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Molecule=20AI=20=C2=B7=20app-lead?= Date: Mon, 11 May 2026 04:40:16 +0000 Subject: [PATCH] feat(docs): SEO metadata + a11y focus-visible rings (#18) --- app/(home)/page.tsx | 4 ++-- app/docs/[[...slug]]/page.tsx | 12 ++++++++++++ app/layout.tsx | 13 +++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx index 764f16f..b032791 100644 --- a/app/(home)/page.tsx +++ b/app/(home)/page.tsx @@ -13,13 +13,13 @@ export default function HomePage() {
Read the docs View on Gitea diff --git a/app/docs/[[...slug]]/page.tsx b/app/docs/[[...slug]]/page.tsx index 3b53c6c..2632040 100644 --- a/app/docs/[[...slug]]/page.tsx +++ b/app/docs/[[...slug]]/page.tsx @@ -41,8 +41,20 @@ export async function generateMetadata(props: { const page = source.getPage(params.slug); if (!page) notFound(); + const url = `https://doc.moleculesai.app/docs/${(params.slug ?? []).join("/")}`; + return { title: page.data.title, description: page.data.description, + openGraph: { + title: `${page.data.title} | Molecule AI Docs`, + description: page.data.description, + url, + siteName: "Molecule AI Documentation", + type: "article" as const, + }, + alternates: { + canonical: url, + }, }; } diff --git a/app/layout.tsx b/app/layout.tsx index 90f4d40..48e5368 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -15,6 +15,19 @@ export const metadata = { description: 'Build and run multi-agent organisations on the Molecule AI platform. Templates, plugins, channels, and the runtime that ties them together.', metadataBase: new URL('https://doc.moleculesai.app'), + openGraph: { + type: 'website', + siteName: 'Molecule AI Documentation', + title: 'Molecule AI Documentation', + description: + 'Build and run multi-agent organisations on the Molecule AI platform. Templates, plugins, channels, and the runtime that ties them together.', + }, + twitter: { + card: 'summary_large_image', + title: 'Molecule AI Documentation', + description: + 'Build and run multi-agent organisations on the Molecule AI platform.', + }, }; export default function Layout({ children }: { children: ReactNode }) {