Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

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 locally

The 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:

CategoryFields
Sitetitle, instances (url, custom-domain), logo (light, dark, height, href, right-text), favicon
Themecolors (accent-primary, background, border, sidebar-background, header-background, card-background; accentPrimary is also accepted), typography, layout, css, js
Navigationtabs, navigation (section, page, link, api, changelog (and its blog alias), folder), navbar-links, landing-page
Dimensionsversions, products, languages / translations, and per-language docs.yml and navigation files under translations/<lang>/ (see Per-language navigation files)
Otherredirects, 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-links map (platform → URL) is merged into footer.socials on load; if a platform appears in both, footer.socials wins. Editing social links in the dashboard moves them all under footer.socials.
  • translations/<lang>/fern/<file> is read too, so per-language config files don't need to move.
  • Changelogs: the changelog node and its blog: alias, file names in all three date formats, overview.mdx, ## sections with <ChangelogTags>, tags, draft / hidden, the top-level changelog of multi-product sites, the timeline / classic / blog layouts (including blog-layout, authors, and the post fields author, thumbnail, slug, and description / subtitle / excerpt), the .rss / .atom / .json feed URLs, and /changelog.md and /changelog/llms.txt all 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:

fern/docs.yml
navigation:
  - api: API Reference
    api-name: plants
    openapi: apis/plants/openapi/openapi.yml

If your API is written in Fern Definition (definition/*.yml) rather than OpenAPI, export it to OpenAPI first.

Supported x-fern extensions

ExtensionEffect
x-fern-display-nameEndpoint title
x-fern-sdk-method-nameEndpoint URL segment
x-fern-availabilityStatus badge (beta, deprecated…)
x-fern-ignoreNo page is generated
x-fern-streamingMarks a streaming response
x-fern-enumDescriptions 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:

  • Callout and Note / Info / Warning / Success / Error / Tip / Check / Launch
  • Card, CardGroup, Tile
  • Tabs / Tab (with language sync)
  • Steps / Step
  • Accordion, AccordionGroup
  • CodeBlock, CodeBlocks, Code
  • Frame, Icon, Badge, Button
  • Tooltip, Indent, Anchor, Aside
  • ParamField, ResponseField
  • EndpointRequestSnippet, EndpointResponseSnippet, EndpointSchemaSnippet, WebhookPayloadSnippet, Schema, RunnableEndpoint
  • Files / Folder / File
  • Prompt, ScrollWalkthrough, Update, ChangelogTags (changelog section tags)
  • Versions / Version, If
  • Markdown (snippets), Color, Copy, Download
  • GitHub.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" />
Footers written as React components

The platform doesn't run component code from authors, so a .tsx / .jsx footer produces a build warning and the default footer is shown. Rewrite the footer as MDX; see Custom footer.

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

Add the openapi path to api nodes

Run biti check and fix every api/load and nav/api error.

Fix MDX diagnostics

Handle mdx/attribute, mdx/import, and mdx/unknown-component.

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.

Deploy

Use biti deploy, or connect your repository in the dashboard for automatic deployments on push.