forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
139 lines (136 loc) · 5.74 KB
/
Copy pathlayout.tsx
File metadata and controls
139 lines (136 loc) · 5.74 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import { DocsLayout } from "fumadocs-ui/layout";
import type { ReactNode } from "react";
import { baseOptions } from "../layout.config";
import { source } from "@/app/source";
import { SubdocsMenu } from "@/components/react/subdocs-menu";
import { TerminalIcon, RocketIcon } from "lucide-react";
import { SiCrewai } from "@icons-pack/react-simple-icons";
import { TopBar } from "@/components/layout/top-bar";
import { SiLangchain } from "react-icons/si";
import {
AG2Icon,
MastraIcon,
AgnoIcon,
LlamaIndexIcon,
} from "@/lib/icons/custom-icons";
export default function Layout({ children }: { children: ReactNode }) {
return (
<>
<TopBar />
<DocsLayout
tree={source.pageTree}
{...baseOptions}
sidebar={{
hideSearch: true,
banner: (
<SubdocsMenu
options={[
{
title: "Standard",
description: "Documentation for building Copilots",
url: "/",
icon: <RocketIcon className="w-4 h-4" />,
bgGradient:
"bg-gradient-to-b from-indigo-700 to-indigo-400 text-indigo-100",
selectedStyle: "ring-indigo-500/70 ring-2 rounded-sm",
},
{
title: "CoAgents",
options: [
{
title: "CoAgents (LangGraph)",
description: "Documentation for CoAgents with LangGraph",
url: "/coagents",
icon: <SiLangchain className="w-4 h-4 text-bold" />,
bgGradient:
"bg-gradient-to-b from-purple-700 to-purple-400 text-purple-100",
selectedStyle: "ring-purple-500/70 ring-2 rounded-sm",
},
{
title: "CoAgents (CrewAI Flows)",
description:
"Documentation for CoAgents with CrewAI Flows",
url: "/crewai-flows",
icon: <SiCrewai className="w-4 h-4 text-bold" />,
bgGradient:
"bg-gradient-to-b from-[#FA694C] to-[#FE8A71] text-white",
selectedStyle: "ring-[#FA694C]/70 ring-2 rounded-sm",
},
{
title: "CoAgents (CrewAI Crews)",
description:
"Documentation for CoAgents with CrewAI Crews",
url: "/crewai-crews",
icon: <SiCrewai className="w-4 h-4 text-bold" />,
bgGradient:
"bg-gradient-to-b from-[#FA694C] to-[#FE8A71] text-white",
selectedStyle: "ring-[#FA694C]/70 ring-2 rounded-sm",
},
{
title: "CoAgents (Mastra)",
description: "Documentation for CoAgents with Mastra",
url: "/mastra",
icon: <MastraIcon className="w-4 h-4 text-bold" />,
bgGradient:
"bg-gradient-to-b from-black to-zinc-800 text-white",
selectedStyle:
"ring-zinc-800 dark:ring-white ring-2 rounded-sm",
},
{
title: "CoAgents (AG2)",
description: "Documentation for CoAgents with AG2",
url: "/ag2",
icon: <AG2Icon className="w-4 h-4 text-bold" />,
bgGradient:
"bg-gradient-to-b from-indigo-700 to-indigo-400 text-indigo-100",
selectedStyle: "ring-indigo-500/70 ring-2 rounded-sm",
},
{
title: "CoAgents (Agno)",
description: "Documentation for CoAgents with Agno",
url: "/agno",
icon: <AgnoIcon className="w-4 h-4 text-bold" />,
bgGradient: "bg-[#FF3C1A] text-white",
selectedStyle:
"ring-[#FF3C1A] ring-2 rounded-sm",
},
{
title: "CoAgents (LlamaIndex)",
description: "Documentation for CoAgents with LlamaIndex",
url: "/llamaindex",
icon: <LlamaIndexIcon className="w-4 h-4 text-bold" />,
bgGradient:
"bg-gradient-to-b from-pink-500 via-purple-500 to-blue-400 text-pink-100",
selectedStyle:
"ring-pink-500/70 ring-2 rounded-sm",
},
],
},
{
title: "API Reference",
description: "API Reference",
url: "/reference",
icon: <TerminalIcon className="w-4 h-4" />,
bgGradient:
"bg-gradient-to-b from-teal-700 to-teal-400 text-teal-100",
selectedStyle: "ring-teal-500/70 ring-2 rounded-sm",
},
// {
// title: "Chat with our docs",
// description: "Chat with our docs",
// url: "https://entelligence.ai/CopilotKit&CopilotKit",
// icon: <CircleArrowOutUpRight className="w-4 h-4" />,
// bgGradient:
// "bg-gradient-to-b from-purple-700 to-purple-400 text-purple-100",
// selectedBorder: "ring-teal-500/70",
// },
]}
/>
),
}}
>
{children}
</DocsLayout>
</>
);
}