---
title: Migrate from Mintlify
subtitle: ButterIX reads docs.json / mint.json directly and converts it on load, and Mintlify's component syntax works out of the box. To use every feature, rewrite the config as docs.yml.
description: Migrate Mintlify docs to ButterIX — what docs.json / mint.json auto-conversion covers, how page URLs change, mapping for rewriting as docs.yml, Mintlify component and prop compatibility, and migrating snippets and OpenAPI.
---

## Step 1: Preview directly

After signing in (`biti login`), run this in the root of your Mintlify project (when there's no `docs.yml`):

```bash
biti dev
```

biti reads `docs.json` (or the older `mint.json`) and converts it into ButterIX config on load. Pages, images, and snippets all stay where they are.

## What auto-conversion covers

| Mintlify | ButterIX |
|---|---|
| `name` | `title` |
| `logo` (string or `{ light, dark }`) | `logo` |
| `favicon` | `favicon` |
| `colors.primary` / `colors.light` | Light / dark values of `colors.accent-primary` |
| `group` / `pages` in `navigation.groups` or a `navigation` array | Sections (`section`) and pages, with `icon` preserved |
| `navigation.tabs` | Tabs (`tab0`, `tab1`…) and their groups |
| Page string `"guides/quickstart"` | `{ page: "Quickstart", path: "guides/quickstart.mdx" }` |

Auto-conversion is best-effort: OpenAPI, versions, languages, anchors (except `navigation.global.anchors`, which become [`sidebar-links`](../configuration/docs-yml.mdx#sidebar-links)), redirects, footer, navbar links, and so on are **not** converted. For a real migration, rewrite the config as `docs.yml`.

<Warning>
  URLs will change: ButterIX sections contribute a URL segment by default, and page segments are generated from titles. A Mintlify page like `/quickstart` may become `/get-started/quickstart` after conversion. When rewriting `docs.yml`, use `skip-slug: true` and `slug` to keep the original URLs, or add `redirects`.
</Warning>

## Step 2: Rewrite as docs.yml

<CodeGroup>
```json docs.json (Mintlify)
{
  "name": "Acme",
  "logo": { "light": "/logo/light.svg", "dark": "/logo/dark.svg" },
  "colors": { "primary": "#7C5CFF", "light": "#9E8AFF" },
  "navigation": {
    "tabs": [
      {
        "tab": "Guides",
        "groups": [
          { "group": "Get started", "pages": ["index", "quickstart"] }
        ]
      },
      { "tab": "API reference", "openapi": "openapi.json" }
    ]
  },
  "redirects": [{ "source": "/old", "destination": "/quickstart" }]
}
```

```yaml docs.yml (ButterIX)
title: Acme
logo:
  light: logo/light.svg
  dark: logo/dark.svg
colors:
  accent-primary:
    light: "#7C5CFF"
    dark: "#9E8AFF"
tabs:
  guides:
    display-name: Guides
    skip-slug: true
  api:
    display-name: API reference
    slug: api-reference
navigation:
  - tab: guides
    layout:
      - section: Get started
        skip-slug: true        # keep Mintlify's flat URLs
        contents:
          - page: Introduction
            path: index.mdx
            slug: index
          - page: Quickstart
            path: quickstart.mdx
            slug: quickstart
  - tab: api
    layout:
      - api: API reference
        openapi: openapi.json
redirects:
  - source: /old
    destination: /quickstart
```
</CodeGroup>

When `docs.yml` exists it takes precedence over `docs.json`. Once everything checks out, you can delete `docs.json`.

## Component compatibility

Mintlify's components and props all have matching implementations:

| Mintlify | Notes |
|---|---|
| `<Note>` `<Info>` `<Warning>` `<Tip>` `<Check>` `<Danger>` | Callouts; `color` in `<Callout icon color iconType>` maps to the closest style |
| `<Card>` `<CardGroup>` `<Columns>` | Supports `img`, `horizontal`, `cta`, `arrow`, `iconType`, `color` |
| `<Accordion>` `<AccordionGroup>` `<Expandable>` | Supports `description`, `icon`, `defaultOpen` |
| `<Tabs>` `<Tab>` | Supports `icon` and `sync` |
| `<Steps>` `<Step>` | Supports `stepNumber`, `titleSize`, `icon` |
| `<CodeGroup>` | Same name |
| `<ParamField>` | Supports the `query` / `path` / `body` / `header="name"` syntax; `placeholder` is ignored |
| `<ResponseField>` | Supports `pre`, `post` |
| `<Frame>` | Supports `caption`, `hint` |
| `<Tooltip>` | Supports `headline`, `cta`, `href` |
| `<Badge>` | Supports `color`, `size`, `shape`, `stroke` (mapped to `outlined`), `icon`, `disabled` |
| `<Tree>` `<Tree.Folder>` `<Tree.File>` | Mapped to a file tree |
| `<Panel>` `<Banner>` `<Update>` `<Icon>` `<Tile>` `<Color>` | Same name |

See the [Components overview](../components/overview.mdx) for every component.

## Snippets

Importing with `import Snippet from "/snippets/x.mdx"` and using it as `<Snippet />` is fully supported. Defining JSX components or functions in snippets with `export const X = () => …` is **not supported** — ButterIX doesn't execute JavaScript in MDX. Rewrite such components as plain snippets or switch to built-in components; see [Safe subset](../writing/safe-mdx.mdx).

## OpenAPI

The OpenAPI files Mintlify references in `docs.json` work as-is; just write their paths in the `api` node of `docs.yml`. The separate `.mdx` page Mintlify uses for each endpoint (`openapi: "POST /users"` in frontmatter) is no longer needed, since ButterIX generates a page for every endpoint automatically; to reference an endpoint in a guide, use `<EndpointRequestSnippet endpoint="POST /users" />`.

## Checklist

<Steps>
  <Step title="biti check">Fix every error, especially `mdx/import` (importing a non-MDX module) and `mdx/esm` (exporting a function).</Step>
  <Step title="Rewrite docs.yml">Add the config that isn't auto-converted, such as OpenAPI, redirects, navbar links, and the footer.</Step>
  <Step title="Check URLs">Compare against your old sitemap and keep the original URLs with `slug` / `skip-slug` or `redirects`.</Step>
  <Step title="Publish">Run `biti deploy`, or connect a Git repository in the dashboard.</Step>
</Steps>
