---
title: Migrate from Fern
subtitle: 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.
description: Migrate Fern docs to ButterIX — reading fern/docs.yml directly, config field mapping, the openapi path needed for API sections, supported x-fern extensions, component compatibility, syntax to adjust (line-number props, custom components, snippet variables), and a migration checklist.
---

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

```bash
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:

| 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](../features/i18n.mdx#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](../configuration/docs-yml.mdx) 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](../configuration/changelog.mdx).

<Note>
  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](../configuration/docs-yml.mdx#accepted-but-not-yet-used-fields) for the list.
</Note>

## 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**:

```yaml title="fern/docs.yml" {4}
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

| 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](../api/openapi.mdx).

## Component compatibility

Every Fern MDX component has an implementation with the same name and the same props:

<Columns cols={2}>
  <Column>
    - `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`
  </Column>
  <Column>
    - `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`
  </Column>
</Columns>

Code fence meta syntax (title, `{1-3}`, `focus`, `startLine`, `maxLines`, `wordWrap`, `for`) also matches Fern; see [Code blocks](../writing/code-blocks.mdx).

## Syntax to adjust

<AccordionGroup>
  <Accordion title="Write line-number props as strings" icon="lucide:hash" defaultOpen>
    In Fern docs, the `1-3` in `lines={[1-3]}` and `highlight={[1-3, 5]}` is a subtraction expression. ButterIX's [safe subset](../writing/safe-mdx.mdx) only allows literals and reports an `mdx/attribute` error. Change it to:

    ```mdx
    <Code src="snippets/example.ts" lines="1-3" />
    <EndpointRequestSnippet endpoint="POST /plants" highlight="1-3, 5" />
    ```
  </Accordion>
  <Accordion title="Footers written as React components" icon="lucide:panel-bottom">
    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](../configuration/docs-yml.mdx#custom-footer).
  </Accordion>
  <Accordion title="Custom React components" icon="lucide:component">
    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.
  </Accordion>
  <Accordion title="Variable placeholders in snippets" icon="lucide:braces">
    MDX treats `{name}` in snippet body text as an expression; write it as `\{name\}` instead. See [Reusable snippets and variables](../writing/snippets.mdx#parameterized-snippets).
  </Accordion>
  <Accordion title="Role-based content" icon="lucide:users">
    `<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](../deploy/access-control.mdx).
  </Accordion>
</AccordionGroup>

## Migration checklist

<Steps>
  <Step title="Add the openapi path to api nodes">
    Run `biti check` and fix every `api/load` and `nav/api` error.
  </Step>
  <Step title="Fix MDX diagnostics">
    Handle `mdx/attribute`, `mdx/import`, and `mdx/unknown-component`.
  </Step>
  <Step title="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 .`](./migrate.mdx#steps) and add `redirects` where needed.
  </Step>
  <Step title="Deploy">
    Use `biti deploy`, or connect your repository in the dashboard for automatic deployments on push.
  </Step>
</Steps>
