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.
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
- Announcement banner —
announcement.messagefromfern/docs.ymlis copied todocslit.json - Static assets — Copied to the output directory
After migration
Fix any broken links or unknown component tags.
Check the migration report for any pages marked as "needs review". These contain components or syntax that require manual conversion.