Migration Guide
Moving from another documentation framework? This guide covers the key differences and migration steps.
From Docusaurus
- Content Format: Both use MDX, so your content files can be reused with minimal changes.
- Configuration: Replace
docusaurus.config.jswithdocs.config.ts. - Sidebar: Sidebars are generated automatically from the file system.
From Nextra
- File Structure: Similar file-based routing approach.
- Theme: Replace Nextra's theme configuration with our theme system.
- MDX Components: Custom components can be mapped in the config.
From VitePress
- Runtime: VitePress uses Vite; we use Next.js.
- Markdown: VitePress uses standard Markdown; we use MDX.
- Configuration: Replace
.vitepress/config.tswithdocs.config.ts.
Common Migration Steps
# 1. Install dependencies
pnpm add @farming-labs/docs @farming-labs/theme
# 2. Create the configuration
touch docs.config.ts
# 3. Move your content
cp -r old-docs/content/* app/docs/
# 4. Start development
pnpm dev