Skip to content

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

Migration tool

Let your own coding agent move your docs, then make sure with one command that nothing is missing.

The risk in moving docs is losing something: a page, a code sample, an address that people link to. biti migrate works in two steps: it gives a coding agent the steps to follow, and then compares the old and the new project and lists everything that didn't make it. It only reads the old project, never changes it, and sends its content nowhere.

Steps

Hand them to a coding agent

Give migrate.md to Claude Code, Cursor, Codex or another tool, and let it work in a new folder.

Compare

biti check docs
biti migrate ../old-docs --check docs --report migration.md

The exit code is 1 while something is missing. Give the report to the agent and repeat.

Check addresses that are online

While the old site is online, its sitemap shows which addresses must keep working:

biti migrate https://docs.example.com --check docs

Review and publish

Look through the preview, then run biti deploy.

Sources

SourceRecognized byNotes
Mintlifydocs.json, mint.jsonCan be imported directly, see Migrate from Mintlify
Fernfern/docs.ymlCan be imported directly, see Migrate from Fern
Docusaurusdocusaurus.config.*Sidebars and config are code; they aren't run, the agent reads them
GitBook.gitbook.yaml, SUMMARY.mdContent synced to a Git repository
ReadMe_order.yamlAn exported project
Starlight, VitePress, Nextra, Fumadocs, MkDocsTheir config files
Anything else.md and .mdx filesGeneral steps only
Any websiteAn https:// addressChecks the addresses in its sitemap only

What is compared

ItemHow
Pages and textHow much of the old text the new project contains. Pages may be split, merged and renamed, and markup may differ; text that many pages share counts less
Code blocksWhether each is still there, ignoring whitespace
HeadingsListed for incomplete pages
Images and filesBy content, so renaming and moving don't matter
NavigationFiles with content that no page shows
AddressesOld addresses have a page or a redirect. Derived from the files by each platform's rules; addresses that can't be derived aren't checked
RedirectsWhether each old one still works
APIEvery operation in the OpenAPI files

The comparison says whether content is still there, not how it looks or reads. Have a person look through it before publishing.

Options

--checkstring
Folder of the new project to compare with.
--reportstring
Write the report to a Markdown file.
--basestring
Path the old site was served under, such as /docs.
--ignorestring
Old pages left out on purpose; supports * and **, and can be repeated.
--jsonboolean
Machine-readable output. Without --check, the inventory of the old project.