The Open Framework for Building Agents
Show templates in the docs navigation (#795)
vercel-gh-bot-3[bot]790d59545cb3
diff --git a/apps/docs/app/[lang]/resources/page.tsx b/apps/docs/app/[lang]/resources/page.tsxindex d12fea730..e4e96d39c 100644--- a/apps/docs/app/[lang]/resources/page.tsx+++ b/apps/docs/app/[lang]/resources/page.tsx@@ -1,18 +1,10 @@import type { Metadata } from "next";import Link from "next/link";import { translations } from "@/geistdocs";-import { type Resource, resources, type ResourceKind } from "@/lib/resources/data";+import { type Resource, resources } from "@/lib/resources/data";-const title = "Resources";-const description = "Guides, templates, and examples to help you build with eve.";--const kindClassName: Record<ResourceKind, string> = {- Community: "border-transparent bg-gray-300 text-gray-1000",- Example: "border-transparent bg-gray-300 text-gray-1000",- Guide: "border-transparent bg-gray-300 text-gray-1000",- Reference: "border-transparent bg-gray-300 text-gray-1000",- Template: "border-transparent bg-gray-300 text-gray-1000",-};+const title = "Templates";+const description = "Templates for building and deploying eve agents.";export const metadata: Metadata = {title,@@ -27,10 +19,8 @@ const ResourceCard = ({ resource }: { resource: Resource }) => {"flex h-full flex-col gap-3 rounded-xl border border-gray-alpha-400 bg-background-100 p-6 no-underline shadow-none transition-colors hover:bg-gray-100 dark:bg-gray-100 dark:hover:bg-gray-200";const content = (<>- <span- className={`inline-flex w-fit shrink-0 items-center justify-center rounded-full border px-2 py-0.5 font-medium text-xs ${kindClassName[resource.kind]}`}- >- {resource.kind}+ <span className="inline-flex w-fit shrink-0 items-center justify-center rounded-full border border-transparent bg-gray-300 px-2 py-0.5 font-medium text-gray-1000 text-xs">+ Template</span><h2 className="line-clamp-2 text-balance font-medium text-base text-gray-1000 leading-snug">{resource.title}@@ -54,7 +44,7 @@ const ResourceCard = ({ resource }: { resource: Resource }) => {);};-const ResourcesPage = () => (+const TemplatesPage = () => (<main className="mx-auto w-full max-w-5xl px-4 pt-16 pb-16 sm:pt-24"><header className="space-y-4 pb-8"><h1 className="text-balance font-semibold text-[40px] text-gray-1000 leading-[1.1] tracking-tight sm:text-5xl">@@ -70,4 +60,4 @@ const ResourcesPage = () => (</main>);-export default ResourcesPage;+export default TemplatesPage;diff --git a/apps/docs/geistdocs.tsx b/apps/docs/geistdocs.tsxindex 80f473eee..06f21e493 100644--- a/apps/docs/geistdocs.tsx+++ b/apps/docs/geistdocs.tsx@@ -18,7 +18,7 @@ export const nav = [href: "/integrations",},{- label: "Resources",+ label: "Templates",href: "/resources",},{diff --git a/apps/docs/lib/resources/data.ts b/apps/docs/lib/resources/data.tsindex a228032c6..3f9a1e72a 100644--- a/apps/docs/lib/resources/data.ts+++ b/apps/docs/lib/resources/data.ts@@ -1,60 +1,26 @@-export type ResourceKind = "Community" | "Example" | "Guide" | "Reference" | "Template";-export interface Resource {description: string;href: string;- kind: ResourceKind;title: string;}export const resources: Resource[] = [{- kind: "Guide",- title: "Build your first agent",- description:- "Follow the tutorial from a first agent through warehouse tools, spend approval, and a deployable chat UI.",- href: "/docs/tutorial/first-agent",- },- {- kind: "Guide",- title: "Frontend guides",- description:- "Use React, Vue, Svelte, Next.js, Nuxt, or SvelteKit helpers to put a durable eve session behind your own UI.",- href: "/docs/guides/frontend/overview",- },- {- kind: "Guide",- title: "TypeScript client",- description:- "Drive the default HTTP channel from scripts, tests, backend jobs, or custom server-side integrations.",- href: "/docs/guides/client/overview",- },- {- kind: "Template",title: "eve Chat Template",description:"A persisted Next.js chat template for eve, built with shadcn/ui, Tailwind CSS, Streamdown, Better Auth, Drizzle, Neon, and Upstash Redis.",href: "https://vercel.com/templates/eve/eve-chat-template",},{- kind: "Template",title: "eve Slack Agent",description:"A Slack agent template with webhook handling, Vercel Connect, a starter agent, and an example tool ready to deploy on Vercel.",href: "https://vercel.com/templates/eve/eve-slack-agent",},{- kind: "Example",title: "Weather Agent Fixture",description:"A small representative eve app with agent config, instructions, a typed weather tool, and a markdown skill.",href: "https://github.com/vercel/eve/tree/main/apps/fixtures/weather-agent",},- {- kind: "Reference",- title: "eve Knowledge Base",- description:- "Vercel's eve hub with getting-started guides, build guides, templates, docs, integrations, and community links.",- href: "https://vercel.com/kb/eve",- },];