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
Navigation Structure
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
orCtrl+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
- Clear Titles - Descriptive and searchable
- Use Callouts - Highlight important information
- Code Examples - Show, don't just tell
- Short Sections - Break up long content
- 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:
- Add Your Content - Start writing in
content/docs/
- Customize Branding - Update OG images and colors
- Organize Navigation - Structure your
meta.json
files - 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? π¬
- Check Fumadocs documentation
- View MDX syntax guide