docs: improve Fumadocs search and AI integration

This commit is contained in:
ajnart committed 2026-09-10 20:51:08 +02:00
1 parent 6704ef2c13
commit 16ba3c6977
33 files changed
+1354 -280

No files matched your search

+13
View File
@@ -8,6 +8,7 @@ import { Provider } from "@/components/provider";
import "./global.css";
const siteUrl = process.env.HOMARR_WEBSITE_URL ?? "https://homarr.dev";
const kapaWebsiteId = process.env.KAPA_WEBSITE_ID ?? "1e4656f4-abeb-4343-bbae-1d8626f52378";
export const metadata: Metadata = {
metadataBase: new URL(siteUrl),
@@ -37,6 +38,18 @@ export default function RootLayout({ children }: { children: ReactNode }) {
<Script src="/workshop-runtime-config.js" strategy="beforeInteractive" />
<Provider>{children}</Provider>
<Analytics />
{kapaWebsiteId && (
<Script
id="kapa-widget"
src="https://widget.kapa.ai/kapa-widget.bundle.js"
strategy="afterInteractive"
data-website-id={kapaWebsiteId}
data-project-name="Homarr"
data-project-color="#2B2B2B"
data-project-logo={new URL("/img/favicon.png", siteUrl).href}
data-modal-open-on-command-k="false"
/>
)}
</body>
</html>
);