Docs

Build beautiful, AI-ready documentation with automatic search, OG images, and LLM integration

Documentation System πŸ“š

Indie Kit comes with a powerful, production-ready documentation system. Write MDX files, and everything else is handled automatically! ✨

What You Get Out of the Box 🎁

Your docs come with incredible features built-in:

  • πŸ€– Automatic llms.txt - AI-ready content for ChatGPT and other platforms
  • πŸ” Built-in Search - Lightning-fast fuzzy search
  • πŸ–ΌοΈ Auto OG Images - Social media cards for every page
  • πŸ“‹ Copy as Markdown - One-click copy for sharing
  • πŸ—ΊοΈ Automatic Sitemap - SEO handled automatically
  • 🎨 Icon Support - Add icons to pages effortlessly
  • πŸ“± Mobile Responsive - Perfect on all devices

Powered by Fumadocs

Built on Fumadocs - a modern documentation framework optimized for performance and developer experience.

AI Integration πŸ€–

Your docs are automatically LLM-ready:

llms.txt Generation

Every time you add content, llms.txt is automatically generated with:

  • Structured content for AI consumption
  • Proper formatting for ChatGPT, Claude, and other LLMs
  • Optimized for context window efficiency

Open in ChatGPT

Users can open any doc page directly in ChatGPT with one click! The "Open in ChatGPT" button:

  • Shares the page content with proper context
  • Works with Claude and other AI platforms
  • Includes markdown formatting

Copy as Markdown

The "Copy as Markdown" feature lets users:

  • Copy entire pages with formatting intact
  • Share in Slack, Discord, or anywhere
  • Preserve code blocks and structure

AI-First Documentation

Your docs are optimized for both humans AND AI! Users can chat with your docs using their favorite AI assistant.

Adding Content πŸ“

Adding new documentation is super simple:

Step 1: Create Your MDX File

Drop your .mdx file in content/docs/:

content/docs/
  β”œβ”€β”€ getting-started.mdx
  β”œβ”€β”€ your-new-page.mdx
  └── advanced/
      └── custom-feature.mdx

Step 2: Add Frontmatter

Every page needs frontmatter:

---
title: Your Page Title
description: A helpful description for SEO
icon: Rocket
---

# Your Content Here

Write your documentation in MDX format!

Step 3: That's It! ✨

Your page is now:

  • βœ… Searchable
  • βœ… Has an OG image
  • βœ… In the sitemap
  • βœ… Available to AI
  • βœ… Mobile responsive

Zero Config

No build steps, no config files! Just add your .mdx file and everything works automatically.

Customization 🎨

Custom OG Images

Want to customize social media preview images?

Edit the OG image generator:

src/app/api/og/route.tsx

Modify the template to match your branding:

// Customize colors, fonts, layout
<div style={{ 
  background: 'linear-gradient(to bottom, #your-colors)',
  // Your custom styles
}}>
  {/* Your custom OG image template */}
</div>

Icons

Add icons to any page using Lucide icons:

---
title: My Page
icon: Rocket  # Any Lucide icon name
---

Common icons:

  • πŸš€ Rocket - Getting started
  • πŸ“š Book - Documentation
  • βš™οΈ Settings - Configuration
  • πŸ” Lock - Security
  • πŸ’³ CreditCard - Payments

Control sidebar navigation in meta.json:

{
  "title": "Section Name",
  "pages": ["page-1", "page-2"],
  "icon": "Folder"
}

Features in Detail ⚑

Search Implementation

Fuzzy search is automatically enabled:

  • Search across all content
  • Keyboard shortcuts (Cmd+K or Ctrl+K)
  • Instant results
  • No configuration needed

Automatic Sitemap

Your sitemap.xml is generated automatically:

  • All documentation pages included
  • Proper priority and change frequency
  • Submitted to search engines

Mobile Navigation

Responsive by default:

  • Collapsible sidebar
  • Touch-friendly navigation
  • Optimized for small screens

SEO Optimized

Every page automatically gets meta tags, OG images, and proper semantic HTML for maximum search engine visibility!

Best Practices πŸ’‘

Writing Great Docs

  1. Clear Titles - Descriptive and searchable
  2. Use Callouts - Highlight important information
  3. Code Examples - Show, don't just tell
  4. Short Sections - Break up long content
  5. Emojis - Make it friendly and scannable

Organizing Content

content/docs/
  β”œβ”€β”€ getting-started.mdx      # First steps
  β”œβ”€β”€ setup/                   # Installation guides
  β”œβ”€β”€ features/                # Feature documentation
  β”œβ”€β”€ guides/                  # How-to guides
  └── api/                     # API reference

Using MDX Features

MDX supports React components:

<Callout title="Important" type="warning">
This is a callout component!
</Callout>

Next Steps πŸš€

Now that you understand the docs system:

  1. Add Your Content - Start writing in content/docs/
  2. Customize Branding - Update OG images and colors
  3. Organize Navigation - Structure your meta.json files
  4. Test Search - Make sure content is discoverable

Documentation Ready!

Your documentation system is production-ready! Just add content and watch the magic happen. ✨

Need Help? πŸ’¬