---
title: Migration Guide
description: >-
  Migrate a Mintlify project with `jamdesk migrate`, which converts mint.json to
  docs.json and rewrites your MDX files in place.
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://jamdesk.com/docs/llms.txt). Append `.md` to any page URL for its markdown version.


  See the clean markdown version of this page at https://jamdesk.com/docs/setup/migration.md





Migrate a Mintlify project with one command: `jamdesk migrate` reads `mint.json`, writes `docs.json`, and rewrites your MDX in place. For GitBook, Docusaurus, ReadMe, Confluence, or another platform, follow the manual steps in the "Other Platforms" tab.

<YouTube id="DvIHWeBliK0" />

<Info>
**Export as Markdown first if you can.** Jamdesk is built on MDX. A Markdown file needs only a `.mdx` rename and a few lines of frontmatter.
</Info>

## Choose Your Path

### From Mintlify

<Card title="Mintlify to Jamdesk Guide" icon="book-open" href="https://jamdesk.com/blog/migrating-from-mintlify-to-jamdesk">
  Migration walkthrough with background, examples, and tips.
</Card>

### Automated Migration

#### 1. Install the CLI

```bash
npm install -g jamdesk
```

#### 2. Run the migration

```bash
jamdesk migrate
```

Run it from the project root. It does the following:

- Reads `mint.json` and writes `docs.json`
- Renames deprecated components in MDX files (e.g. `CardGroup` → `Columns`)
- Moves orphan snippet MDX files into `/snippets/` and rewrites every parent-relative import (`../foo/bar.mdx`) to a root-relative one (`/snippets/foo/bar.mdx`)
- Extracts inline components that use React hooks into `/snippets/<name>.tsx` with the `'use client'` directive and rewrites the original MDX to import from `/snippets/`
- Auto-fixes mechanical MDX syntax issues that would crash the build

The command is idempotent. Re-run it after edits to pick up only what's new. Anything it can't safely fix prints as a warning with the file, the import, and the action to take.

#### 3. Review and adjust

Check the generated `docs.json` and MDX files. Verify the navigation structure and fix any warnings printed by the CLI.

### Configuration Mapping

The CLI converts `mint.json` to `docs.json`. Use these differences to verify the output.

**Mintlify (`mint.json`):**

```json
{
  "name": "My Docs",
  "navigation": [
    { "group": "Getting Started", "pages": ["introduction", "quickstart"] }
  ],
  "colors": { "primary": "#0D9373" },
  "topbarLinks": [{ "name": "Blog", "url": "https://example.com/blog" }]
}
```

**Jamdesk (`docs.json`):**

```json
{
  "$schema": "https://jamdesk.com/docs.json",
  "name": "My Docs",
  "theme": "jam",
  "colors": { "primary": "#0D9373" },
  "navbar": {
    "links": [{ "label": "Blog", "href": "https://example.com/blog" }]
  },
  "navigation": {
    "groups": [
      { "group": "Getting Started", "pages": ["introduction", "quickstart"] }
    ]
  }
}
```

### Component Compatibility

Most Mintlify components have direct Jamdesk equivalents. A few have different names or syntax.

| Mintlify Component | Jamdesk Equivalent | Notes |
|---|---|---|
| `<Card>` | `<Card>` | Same syntax |
| CardGroup | `<Columns>` | Use `cols` prop for column count |
| `<Columns>` | `<Columns>` | Same syntax |
| `<Accordion>` | `<Accordion>` | Same syntax |
| `<Tabs>` / `<Tab>` | `<Tabs>` / `<Tab>` | Same syntax |
| `<Steps>` / `<Step>` | `<Steps>` / `<Step>` | Same syntax |
| `<CodeGroup>` | `<CodeGroup>` | Same syntax |
| `<Tip>`, `<Note>`, `<Warning>` | `<Tip>`, `<Note>`, `<Warning>` | Same syntax |
| `<ResponseField>` | `<ParamField>` | Different name |
| `<Snippet>` | Import from `/snippets/` | Different approach |

### Common Issues

#### CardGroup becomes Columns

`jamdesk migrate` renames `CardGroup` to `Columns` in every MDX file. The `cols` prop carries over unchanged. Check any files you edited after running the migration.

#### ResponseField becomes ParamField

Rename `<ResponseField>` to `<ParamField>`. Props stay the same.

```mdx
{/* Before */}
<ResponseField name="id" type="string" required>
  The unique identifier
</ResponseField>

{/* After */}
<ParamField name="id" type="string" required>
  The unique identifier
</ParamField>
```

#### Snippets are relocated and rewired automatically

Jamdesk resolves only root-relative `/snippets/*` imports. Mintlify projects often keep snippet MDX files anywhere in the tree and import them with parent-relative paths (`import X from '../shared/x.mdx'`).

`jamdesk migrate` fixes this:

- Moves MDX files that are imported as snippets but live outside `/snippets/` into `/snippets/`. It keeps their relative path, so locale-prefixed snippets like `de/foo.mdx` don't collide.
- Rewrites every parent-relative snippet import in every MDX file to the new root-relative path.
- Extracts any inline component that uses React hooks into a `'use client'` file at `/snippets/<name>.tsx` and replaces the inline export with an import from `/snippets/`.

Swap Mintlify's `<Snippet file="my-snippet.mdx" />` JSX element for an MDX import. The CLI doesn't rewrite it:

```mdx
{/* Before (Mintlify) */}
<Snippet file="my-snippet.mdx" />

{/* After (Jamdesk) */}
import MySnippet from '/snippets/my-snippet.mdx'

<MySnippet />
```

The relocator aborts without touching anything if your project has no resolved navigation or the planned moves exceed `max(5, 25%)` of all MDX files. It prints the reason. Fix it and re-run.

#### topbarLinks maps to navbar.links

Mintlify's `topbarLinks` and `topbarCtaButton` map to `navbar.links` in `docs.json`. The `name` field becomes `label`. The `url` field becomes `href`.

### From Other Platforms

<Card title="HTML to MDX Converter" icon="file-code" href="https://jamdesk.com/utilities/html-to-mdx" horizontal>
  Paste HTML exported from Confluence, Notion, or another platform into the free converter. Get MDX for your project.
</Card>

<Tip>
  For migration help, [contact us](mailto:contact@jamdesk.com).
</Tip>

### From GitBook

GitBook stores content as Markdown with a `SUMMARY.md` file for navigation.

#### 1. Export your content

Export your GitBook space as Markdown. With GitBook's Git sync, your content is already in a Git repo as `.md` files.

#### 2. Convert files to MDX

Rename `.md` files to `.mdx` and add frontmatter to each file:

```mdx
---
title: Your Page Title
description: A short description of the page
---

Your existing Markdown content here.
```

#### 3. Map navigation from SUMMARY.md

Convert the `SUMMARY.md` sidebar to `docs.json` navigation groups.

**GitBook (`SUMMARY.md`):**

```markdown
# Summary

## Getting Started
* [Introduction](introduction.md)
* [Quick Start](quickstart.md)

## API Reference
* [Authentication](api/auth.md)
```

**Jamdesk (`docs.json`):**

```json
{
  "navigation": {
    "groups": [
      {
        "group": "Getting Started",
        "pages": ["introduction", "quickstart"]
      },
      {
        "group": "API Reference",
        "pages": ["api/auth"]
      }
    ]
  }
}
```

#### 4. Move images

Move all images to an `/images` directory and update references in your MDX files to use absolute paths (e.g., `/images/screenshot.png`).

#### 5. Test locally

```bash
jamdesk dev
```

### From Docusaurus

Docusaurus projects already use MDX. Most content transfers directly.

#### 1. Copy your MDX files

Copy the contents of your Docusaurus `docs/` directory into your Jamdesk project root. Keep your existing directory structure.

#### 2. Clean up frontmatter

Remove Docusaurus-specific frontmatter fields. Keep `title` and `description`, drop the rest.

```yaml
---
# Remove these Docusaurus fields
sidebar_position: 3
sidebar_label: "Custom Label"
slug: /custom-url
pagination_next: null

# Keep these
title: Your Page Title
description: A short description
---
```

#### 3. Map sidebars.js to docs.json

Convert your `sidebars.js` category structure to `docs.json` navigation groups.

**Docusaurus (`sidebars.js`):**

```javascript
module.exports = {
  docs: [
    {
      type: 'category',
      label: 'Getting Started',
      items: ['intro', 'installation'],
    },
  ],
};
```

**Jamdesk (`docs.json`):**

```json
{
  "navigation": {
    "groups": [
      {
        "group": "Getting Started",
        "pages": ["intro", "installation"]
      }
    ]
  }
}
```

#### 4. Replace Docusaurus components

Swap Docusaurus-specific components for Jamdesk equivalents.

| Docusaurus | Jamdesk | Example |
|---|---|---|
| `:::note` / `:::tip` / `:::warning` | `<Note>` / `<Tip>` / `<Warning>` | See [callout components](https://jamdesk.com/docs/components/overview) |
| `import Tabs from '@theme/Tabs'` | `<Tabs>` (globally available) | No import needed |
| `import TabItem from '@theme/TabItem'` | `<Tab>` (globally available) | Use `title` instead of `label` |

#### 5. Test locally

```bash
jamdesk dev
```

### From Other Tools

For Confluence, Notion, ReadMe, or another platform, get your content into Markdown. Then set up the Jamdesk project structure.

#### 1. Export as Markdown

Most platforms have a Markdown or HTML export option. Use Markdown if available. Convert HTML to Markdown with a tool like [Pandoc](https://pandoc.org/).

```bash
# Convert HTML to Markdown with Pandoc
pandoc input.html -f html -t markdown -o output.md
```

#### 2. Create docs.json

Start with a minimal configuration. Add to the navigation as you add pages.

#### 3. Convert files to MDX

Rename `.md` files to `.mdx` and add frontmatter (`title`, `description`) to each file.

#### 4. Move assets

Move images and other assets to an `/images` directory. Update file references to use absolute paths.

#### 5. Test locally

```bash
jamdesk dev
```

## Post-Migration Checklist

<Check>All pages render without errors</Check>
<Check>Navigation structure matches your original site</Check>
<Check>Internal links work correctly</Check>
<Check>Images and assets display properly</Check>
<Check>Code blocks have correct syntax highlighting</Check>
<Check>Search indexes your content</Check>

## What's Next?

<Columns cols={2}>
  <Card title="Directory Structure" icon="folder-tree" href="/setup/directory-structure">
    Learn how to organize your documentation
  </Card>
  <Card title="docs.json Reference" icon="gear" href="/config/docs-json-reference">
    Configure your site settings
  </Card>
</Columns>
