Migrate from Fern
DocsLit can import documentation from a Fern project. The import command reads your Fern configuration, converts the content, and generates a DocsLit project.
Run the migration
DocsLit detects Fern projects by looking for fern/fern.config.json in the source directory.
Use --dry-run to preview the migration without writing files:
What gets converted
- Markdown content — Copied and cleaned up
- MDX components — Converted to
<wc-*>equivalents - Import/export statements — Stripped
- Sidebar structure — Generated from the Fern navigation config
- Static assets — Copied to the output directory
After migration
Fix any broken links or unknown component tags.