mirror of
https://github.com/luxfi/docs-template.git
synced 2026-10-30 16:58:41 +00:00
2.0 KiB
2.0 KiB
@luxfi/docs-template - AI Assistant Guide
Overview
This is a documentation template for Lux Network projects built with Fumadocs UI and Next.js.
Project Structure
docs-template/
├── app/
│ ├── layout.tsx # SITE_CONFIG - metadata, SEO
│ └── docs/layout.tsx # DOCS_CONFIG - sidebar, socials, footer
├── content/docs/ # MDX documentation content
│ └── meta.json # Sidebar structure
├── components/logo.tsx # Lux logo component (@luxfi/logo)
├── lib/source.ts # Fumadocs content source
└── public/
├── favicon.svg # Lux logo favicon
└── og.png # Open Graph image
Configuration
SITE_CONFIG (app/layout.tsx)
const SITE_CONFIG = {
name: 'Project Name',
description: 'Project description',
url: 'https://docs.project.com',
keywords: ['keyword1', 'keyword2'],
}
DOCS_CONFIG (app/docs/layout.tsx)
const DOCS_CONFIG = {
name: 'Project Name',
github: 'https://github.com/org/repo',
socials: {
website: 'https://lux.network',
discord: 'https://discord.gg/luxfi',
twitter: 'https://x.com/luxdefi',
warpcast: 'https://warpcast.com/luxfi',
},
footerLinks: [
{ text: 'View on GitHub', url: '...', icon: 'github' },
],
}
Commands
pnpm dev # Development server (port 3003)
pnpm build # Production build
pnpm generate:og # Generate OG image
Dependencies
@luxfi/logo- Official Lux logofumadocs-ui/fumadocs-core- Documentation frameworkreact-markdown/remark-gfm- Markdown renderinggray-matter- Frontmatter parsing
Forking for New Projects
- Clone:
gh repo clone luxfi/docs-template my-docs - Edit
SITE_CONFIGandDOCS_CONFIG - Replace content in
content/docs/ - Update
public/og.png - Deploy to Vercel
Pulling Upstream Changes
See UPSTREAM.md in forked projects for sync instructions.