import { Metadata } from "next" import { Book, Code, Rocket, Settings, Sparkles, Terminal, Workflow, Zap } from "lucide-react" import Link from "next/link" import { generateSEO } from "@/lib/seo" const BASE_URL = process.env.NEXT_PUBLIC_APP_URL || 'https://open-prompt.netlify.app' export const metadata: Metadata = generateSEO({ title: "Documentation | OpenPrompt", description: "Complete documentation for OpenPrompt. Learn how to create, share, embed, and run AI prompts. API reference, prompt frameworks, and workflow guides.", url: `${BASE_URL}/docs`, keywords: ["OpenPrompt docs", "API documentation", "prompt creation guide", "embed prompts"], }) as Metadata const sections = [ { title: "Getting Started", icon: Rocket, description: "Learn the basics of OpenPrompt", links: [ { href: "#", label: "Introduction" }, { href: "#", label: "Creating Your First Prompt" }, { href: "#", label: "Running Prompts" }, { href: "#", label: "Sharing & Embedding" }, ], }, { title: "Prompt Frameworks", icon: Sparkles, description: "Master proven prompt engineering techniques", links: [ { href: "/frameworks", label: "Framework Overview" }, { href: "#", label: "RACE Framework" }, { href: "#", label: "CARE Framework" }, { href: "#", label: "CREATE Framework" }, ], }, { title: "Tools & Features", icon: Zap, description: "Explore our 65+ AI-powered tools", links: [ { href: "/tools", label: "Tools Overview" }, { href: "#", label: "Marketing Tools" }, { href: "#", label: "Business Tools" }, { href: "#", label: "Content Tools" }, ], }, { title: "Workflows", icon: Workflow, description: "Chain prompts together for complex tasks", links: [ { href: "/workflows", label: "Workflow Builder" }, { href: "#", label: "Creating Workflows" }, { href: "#", label: "Workflow Templates" }, { href: "#", label: "Advanced Patterns" }, ], }, { title: "API Reference", icon: Code, description: "Integrate OpenPrompt into your apps", links: [ { href: "#", label: "API Overview" }, { href: "#", label: "Authentication" }, { href: "#", label: "Endpoints" }, { href: "#", label: "Rate Limits" }, ], }, { title: "Configuration", icon: Settings, description: "Customize your OpenPrompt experience", links: [ { href: "#", label: "Account Settings" }, { href: "#", label: "API Keys" }, { href: "#", label: "Ollama Integration" }, { href: "#", label: "Webhooks" }, ], }, ] export default function DocsPage() { return (
Everything you need to create, share, and run AI prompts like a pro.
Get up and running with OpenPrompt in under 5 minutes.
{section.description}
Can't find what you're looking for?{" "} Contact support