Migrate from Fern
ButterIX's docs.yml matches Fern's fields, and component names and props are compatible. Most Fern docs projects build as-is once you add the OpenAPI path.
Use fern/docs.yml directly
biti looks for config in the order docs.yml → docs.yaml → fern/docs.yml → biti/docs.yml → docs.json → mint.json. After signing in (biti login), run this in the root of your Fern repository:
biti check # find what needs adjusting
biti dev # preview locallyThe fern/ directory containing the config file is the project root, and paths in docs.yml (pages/…, assets/…) keep resolving relative to it — no files need to move.
Config field mapping
These Fern fields work as-is:
| Category | Fields |
|---|---|
| Site | title, instances (url, custom-domain), logo (light, dark, height, href, right-text), favicon |
| Theme | colors (accent-primary, background, border, sidebar-background, header-background, card-background; accentPrimary is also accepted), typography, layout, css, js |
| Navigation | tabs, navigation (section, page, link, api, changelog (and its blog alias), folder), navbar-links, landing-page |
| Dimensions | versions, products, languages / translations, and per-language docs.yml and navigation files under translations/<lang>/ (see Per-language navigation files) |
| Other | redirects, announcement, analytics, footer |
slug, skip-slug, icon, hidden, collapsed, availability, and noindex on navigation nodes mean the same as in Fern. See the docs.yml reference for full field details.
A few more things carry over as they are:
- A top-level
footer-linksmap (platform → URL) is merged intofooter.socialson load; if a platform appears in both,footer.socialswins. Editing social links in the dashboard moves them all underfooter.socials. translations/<lang>/fern/<file>is read too, so per-language config files don't need to move.- Changelogs: the
changelognode and itsblog:alias, file names in all three date formats,overview.mdx,##sections with<ChangelogTags>,tags,draft/hidden, the top-levelchangelogof multi-product sites, thetimeline/classic/bloglayouts (includingblog-layout,authors, and the post fieldsauthor,thumbnail,slug, anddescription/subtitle/excerpt), the.rss/.atom/.jsonfeed URLs, and/changelog.mdand/changelog/llms.txtall match Fern; see Changelog.
A few Fern fields are accepted but not yet used (for example background-image and layout.disable-header); see docs.yml reference › Accepted but not yet used fields for the list.
API sections: add the openapi path
Fern's - api: API Reference usually uses api-name to reference definitions under fern/apis/<name>/ described by generators.yml. ButterIX doesn't read Fern Definitions or generators.yml, so you need to write the OpenAPI file path directly on the api node:
navigation:
- api: API Reference
api-name: plants
openapi: apis/plants/openapi/openapi.ymlIf your API is written in Fern Definition (definition/*.yml) rather than OpenAPI, export it to OpenAPI first.
Supported x-fern extensions
| Extension | Effect |
|---|---|
x-fern-display-name | Endpoint title |
x-fern-sdk-method-name | Endpoint URL segment |
x-fern-availability | Status badge (beta, deprecated…) |
x-fern-ignore | No page is generated |
x-fern-streaming | Marks a streaming response |
x-fern-enum | Descriptions for enum values |
Redocly-style x-codeSamples, x-displayName, x-hidden, and x-internal are supported too. See Import OpenAPI.
Component compatibility
Every Fern MDX component has an implementation with the same name and the same props:
CalloutandNote/Info/Warning/Success/Error/Tip/Check/LaunchCard,CardGroup,TileTabs/Tab(withlanguagesync)Steps/StepAccordion,AccordionGroupCodeBlock,CodeBlocks,CodeFrame,Icon,Badge,ButtonTooltip,Indent,Anchor,Aside
ParamField,ResponseFieldEndpointRequestSnippet,EndpointResponseSnippet,EndpointSchemaSnippet,WebhookPayloadSnippet,Schema,RunnableEndpointFiles/Folder/FilePrompt,ScrollWalkthrough,Update,ChangelogTags(changelog section tags)Versions/Version,IfMarkdown(snippets),Color,Copy,DownloadGitHub.Repo,StickyTable
Code fence meta syntax (title, {1-3}, focus, startLine, maxLines, wordWrap, for) also matches Fern; see Code blocks.
Syntax to adjust
Write line-number props as strings
In Fern docs, the 1-3 in lines={[1-3]} and highlight={[1-3, 5]} is a subtraction expression. ButterIX's safe subset only allows literals and reports an mdx/attribute error. Change it to:
<Code src="snippets/example.ts" lines="1-3" />
<EndpointRequestSnippet endpoint="POST /plants" highlight="1-3, 5" />Custom React components
ButterIX doesn't execute JavaScript in MDX, and import can only import .md / .mdx snippets. Replace custom components with the closest built-in component, or rewrite the content as a snippet. biti check gives an mdx/unknown-component warning for every unknown component.
Variable placeholders in snippets
MDX treats {name} in snippet body text as an expression; write it as \{name\} instead. See Reusable snippets and variables.
Role-based content
<If roles> is accepted, but a static site has no logged-in user, so the condition is never true. To control access per user, see Access control.
Migration checklist
Check URLs
ButterIX's slug rules match Fern's (tab, section, and page segments joined in order, with slug and skip-slug support). Compare the URLs against your old sitemap with biti migrate https://old-site --check . and add redirects where needed.