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 }) {