Migrate from Fern
Migrate a Fern site to Mintlify. Convert MDX content, docs.yml navigation, products, versions, assets, API references, and components.
Migrate a Fern site from its Git repository. Fern stores documentation as Markdown or MDX alongside docs.yml, assets, and API specifications, so the source repository is more complete and reliable than the published HTML.
Collect your source content
Create a migration branch or copy of your documentation repository.
Locate all of the following items:
Recreate navigation
Fern defines navigation in docs.yml or in separate files for products and versions. Mintlify defines navigation in docs.json.
Fern constructs routes from the slugs of sections, folders, tabs, versions, products, and pages. Do not infer the old URL from the source filename alone. Export the published sitemap and resolve slug, skip-slug, and page-level path overrides before creating redirects.
When a Fern folder uses index.mdx as its overview, use that page as the Mintlify group’s root. Preserve deliberate navigation order rather than relying on Fern’s alphabetical folder discovery.
Convert pages and frontmatter
Most standard Markdown and MDX can move directly. Every Mintlify page needs a title. Retain descriptions, keywords, and other useful SEO metadata.
Review Fern-specific frontmatter such as:
Recreate behavior with Mintlify frontmatter, navigation, or content. Add a callout for availability states that do not have an equivalent presentation.
Convert components
Fern and Mintlify both use MDX components, but component names and properties are not interchangeable. Search every page for JSX tags and imports instead of assuming they render unchanged.
Remove Fern-only imports after conversion. Preview pages that use nested components because valid syntax and supported properties can differ even when both platforms use the same component name.
Migrate API references
Use your API specification to create your new API reference pages.
Fern definitions can contain information that is not represented directly in an OpenAPI document. Review the generated OpenAPI output and move any missing descriptions or examples before retiring your Fern build.
Migrate products and versions
Fern can place navigation in product-specific or version-specific YAML files. Inventory every referenced file and map each maintained product and version to the corresponding Mintlify navigation structure.
Check for:
Migrate assets and site settings
Copy files from the configured asset directories and update relative paths after moving pages. Do not leave required production assets on your former deployment unless you plan to keep that hosting after your migration. Review docs.yml for logos, favicons, social images, fonts, colors, navbar links, announcement banners, redirects, analytics, custom CSS, and custom JavaScript.
Recreate supported settings in docs.json. Treat CSS and JavaScript as requirements to evaluate, not files to copy blindly, because their selectors and runtime assumptions are platform-specific.
Review your migration
Compare every docs.yml navigation entry and discovered folder page against docs.json, then validate every product, version, and tab.
Search your converted files for leftover Fern syntax: component imports, unsupported JSX properties, and Versions or If blocks.