Guide · 7 steps · Updated 4 December 2026

How to migrate off Mintlify without breaking a link

Moving docs is easy. Moving them so that every link anyone ever shared still works is the hard part. These seven steps work whichever tool you move to: Docusaurus, GitBook, ReadMe, your own build, or Pagerail.

After the steps: what Pagerail's Import does for you, what it leaves behind, and how to run the open-source Converter yourself.

1. List every URL you have now

Before you move anything, write down every address your docs answer today. Each one may be linked from a blog post, a support answer, a GitHub issue or a search result, and the move succeeds only if all of them still work afterwards.

Mintlify publishes a sitemap at /sitemap.xml with every page, so this saves the list:

curl -s https://docs.example.com/sitemap.xml \
  | tr '<' '\n' | sed -n 's/^loc>//p' | sort -u > old-urls.txt
wc -l old-urls.txt

Mintlify also serves /llms.txt, an index of the pages for AI tools, which can link to further indexes on big sites, and each page as Markdown at its own URL plus .md. Use it to cross-check the list. Then add the source of every entry in your docs.json redirects: those are old URLs too.

2. Get your source files

If your docs build from a Git repository, that repository is the real source. It holds:

  • docs.json (mint.json on older sites): the navigation, colours, logo, favicon, redirects and the OpenAPI files;
  • one .mdx file per page;
  • /snippets: shared pieces that pages import;
  • the OpenAPI files themselves, and the images.

No access to the repository? Each page's .md version has its text, with Mintlify's components flattened into plain Markdown, so you rebuild callouts and tabs by hand.

3. Convert Mintlify's components

Mintlify pages are MDX that uses Mintlify's own components. Your new tool has its own names for most of them:

  • Note, Tip, Info, Warning, Check, Danger: callouts (admonitions such as :::note in Docusaurus).
  • Card and CardGroup: link cards, or a plain list of links.
  • Tabs, Tab and CodeGroup: tabs.
  • Steps: a numbered list. Accordion and Expandable: <details>.
  • ParamField, ResponseField, RequestExample and ResponseExample: your tool's API field lists and code samples.
  • mermaid code blocks: diagrams, if the new tool supports Mermaid.

Some MDX runs code: import and export lines, {expressions}, and React components defined in /snippets. Rewrite each for the new tool, or replace it with the static text it showed.

4. Move the API reference

Find the OpenAPI files under api.openapi in docs.json and in any openapi entry of the navigation. Mintlify needs OpenAPI 3.x, so they already are. Mintlify gives each operation its own page and works out the path from your spec, so don't guess the new paths: take them from the list you saved in step 1, and make the new reference use the same ones.

5. Keep every old URL

  • Keep the same paths. /api-reference/payments/create stays exactly that, with the same trailing-slash behaviour.
  • Keep the same host. docs.example.com stays docs.example.com; you only change what answers it.
  • Carry over the redirects in docs.json. They're pairs of source and destination, and may use :slug and * patterns.
  • Add a 301 from the old path for any page that has to move.
  • Keep heading anchors. Mintlify makes each heading's id from its text. If the new tool makes ids differently, links to #sections break without an error, so check a few by hand.

6. Check every old URL against the new site

Run the list from step 1 against the new site. This prints only the URLs that don't end in a 200, following redirects, so no output means every old URL works:

# NEW is where the new site answers before the switch, such as a staging URL.
NEW=https://staging.example.com
while read -r url; do
  path="${url#https://docs.example.com}"
  code=$(curl -s -o /dev/null -L -w '%{http_code}' "$NEW$path")
  test "$code" = 200 || echo "$code $path"
done < old-urls.txt

7. Switch the domain last

Keep Mintlify live until the check prints nothing. Then point your docs domain's DNS at the new host, run the check once more against the real domain, and cancel Mintlify only after that. Submit the new sitemap in Google Search Console and Bing Webmaster Tools so the search engines notice the move sooner.

What Pagerail's Import carries over

Pagerail's Import does steps 1 to 5 for you. It reads your Source repo when it's public, and your published pages through llms.txt when it isn't.

  • Every page and the navigation: tabs, groups and pages. Mintlify's anchors become tabs.
  • The components: Note, Tip, Info, Warning, Check, Danger, Callout, Card, CardGroup, Tabs, Steps, Accordion, Expandable, CodeGroup, RequestExample, ResponseExample, ParamField, ResponseField, Frame, Tooltip, Badge, Icon, Tree, Update and Mermaid diagrams.
  • Snippets, inlined into each page that uses them, and {{variables}}, filled in.
  • Code blocks, highlighted ahead of time, and search across every page.
  • Your logo, colours, favicon, navbar links and light or dark default.
  • An API reference from your OpenAPI 3.x files, with Try it.
  • Every page path, exactly, and your docs.json redirects. A page that can't keep its path gets a redirect from the old one.

The Conversion report opens with how many old URLs were kept, out of how many, then lists what changed on each page.

What doesn't carry over

A Pagerail page never runs code from your docs, so the Import removes some things on purpose. Each removal is listed in the Conversion report, on the page it came from.

  • import and export lines, {expressions}, <script> tags, event handlers such as onclick, and HTML that isn't on the allowed list.
  • Components Pagerail doesn't know, such as your own React components. The component goes and its text stays.
  • Embedded videos and other embeds, which become a link to the original.
  • docs.json settings with no Pagerail counterpart: the theme, fonts, background, styling, footer, banner, search and SEO settings, integrations, the contextual menu, thumbnails and the API playground settings.
  • Versions and languages: only the default one is imported.
  • SDK and AsyncAPI entries in the navigation, and Swagger 2.0 files.
  • Redirects that use a wildcard pattern Pagerail doesn't support.
  • Pages past the first 500, which are listed as not imported.
  • Mintlify's own services: the AI Assistant and Autopilot, analytics and user feedback. Reader analytics are coming to Pagerail; AI features aren't planned.

Doing it yourself with the Converter

The Converter that runs every Pagerail Import is open source under the MIT licence, and it has a command line. It writes your docs out as plain files on your own machine, so you can take them to any tool:

pnpm --filter @pagerail/converter import https://docs.example.com --out ./docs-export
  • pagerail.json: the Site config, with the navigation, brand, OpenAPI files and redirects;
  • content/: one .mdx file per page, with your paths as file names;
  • openapi/, url-map.json (each old URL beside its new one) and report.json (the Conversion report).

Add --published to read the published pages even when the repo is public. It prints the headline when it's done, such as “142 of 142 old URLs kept”.

Not out yet: the Converter's public repository and the npx pagerail import package come before launch. Until then the command above runs inside Pagerail's own repository. This page will link them when they're out.

Migrating with Pagerail

  1. Paste your Mintlify docs URL on the Pagerail home page. No signup. Up to 500 pages.Live
  2. Open your private Preview: the same docs, with search, the API reference and every old path, plus the Conversion report. It expires after 7 days.Live
  3. Reserve the Site with a Commitment to pay $49 a month from a pilot date you pick, within 45 days. No card is taken. Live
  4. Publish to your own domain, with Git sync from your repo.Coming