forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.config.tsx
More file actions
84 lines (76 loc) · 2.8 KB
/
Copy paththeme.config.tsx
File metadata and controls
84 lines (76 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import Image from "next/image";
import { useRouter } from "next/router";
import { DocsThemeConfig, useConfig } from "nextra-theme-docs";
const themeConfig: DocsThemeConfig = {
head: () => {
const router = useRouter();
const { title, ...rest } = useConfig();
const pagePath = router.asPath;
const ogImageUrl = `https://docs.copilotkit.ai/api/opengraph-image?title=${title}`;
const ogTitle = `${title} - CopilotKit`;
return (
<>
<title>{ogTitle}</title>
<meta name="viewport" content="width=device-width"/>
<meta name="application-name" content="CopilotKit"/>
<meta name="msapplication-TileColor" content="#4f46e5"/>
<meta name="theme-color" content="#ffffff"/>
<meta name="charset" content="utf-8"/>
<meta property="description" content="CopilotKit is the simplest way to integrate production-ready Copilots into any product." />
<link rel="sitemap" type="application/xml" href="/sitemap.xml"/>
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="canonical" href={pagePath} />
<meta property="og:description" content="CopilotKit is the simplest way to integrate production-ready Copilots into any product." />
<meta property="og:site_name" content="CopilotKit Documentation" />
<meta name="og:url" content={`https://docs.copilotkit.ai/${pagePath}`} />
<meta name="og:title" content={ogTitle} />
<meta name="og:image" content={ogImageUrl} />
<meta name="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={ogTitle} />
<meta name="twitter:description" content="CopilotKit Documentation" />
<meta name="twitter:image" content={ogImageUrl} />
</>
);
},
logo: (
<div className="flex items-center gap-x-2">
<Image
src="/images/logo-light.webp"
alt="CopilotKit"
height={34}
width={130}
/>
<span className="font-semibold text-indigo-950">Docs</span>
</div>
),
project: {
link: "https://github.com/copilotkit/copilotkit",
},
chat: {
link: "https://discord.gg/6dffbvGU3D",
},
docsRepositoryBase: "https://github.com/copilotkit/copilotkit",
footer: {
content: "© Tawkit, Inc. All rights reserved.",
},
darkMode: false,
nextThemes: {
defaultTheme: "light",
forcedTheme: "light",
},
color: {
hue: {
light: 245,
dark: 245,
},
saturation: {
light: 75,
dark: 75,
},
},
};
export default themeConfig;