| title | Migrate to Mintlify | ||||
|---|---|---|---|---|---|
| description | Migrate your documentation to Mintlify from Docusaurus, ReadMe, GitBook, or another platform with step-by-step instructions and CLI tooling. | ||||
| keywords |
|
This guide helps you move your existing documentation to Mintlify. Choose automated migration for supported platforms or manual migration for complete control over the process.
- If you currently use Docusaurus or ReadMe -> Automated migration
- If you have a public GitHub repository -> Auto-generated migration
- If you are migrating from any other platform -> Manual migration
Migrate your documentation using the @mintlify/scraping package. The package scrapes your content and converts it to use Mintlify components.
} horizontal /> } horizontal />If you host your documentation on another platform, see the manual migration steps.
Install the @mintlify/scraping package to get started.
npm install @mintlify/scraping@latest -gThe migration tool automatically detects your documentation platform and converts your content. It saves prepared files locally in the ./docs folder by default.
For large documentation sites, migrate smaller sections one at a time rather than the entire site at once.
Migrate entire sections:
mintlify-scrape section https://your-docs-site.com/docsMigrate single pages:
mintlify-scrape page https://your-docs-site.com/docs/getting-startedFilter specific paths:
Use the --filter (or -f) option to scrape only URLs matching a specific path prefix.
mintlify-scrape section https://your-docs-site.com --filter=/docsThe filter matches the specified path and all nested paths. For example, --filter=/docs matches /docs, /docs/getting-started, /docs/api/reference, and so on.
Migrate OpenAPI specifications:
mintlify-scrape openapi-file [openApiFilename]After scraping your existing documentation platform, you are ready to build your docs on Mintlify.
Confirm that you scraped all of your pages. Then add these files to the documentation repository that you created during the onboarding process. This is usually a GitHub repository.
Mintlify can generate a complete documentation site for any public GitHub repository, whether it already contains documentation or just code.
Replace github.com with mintlify.com in any public repository URL:
https://mintlify.com/github-owner/repository-name
Mintlify analyzes your repository and generates a complete documentation site that you can further customize.
Migrate your documentation from any platform with full control over the process.
To migrate your content to Mintlify, you need:
- A valid
docs.jsonfor your site settings and navigation. See Global settings and Navigation for more information. - A Markdown file (
.mdor.mdx) for each page of your documentation. MDX is the recommended format. See Pages for more information. - (Optional) An OpenAPI specification for your API endpoint pages. See OpenAPI setup for more information.
- If your content is already in Markdown format, copy the content to your Mintlify project. Otherwise, convert your content to MDX format.
- Create your
docs.jsonreferencing the paths to your Markdown pages. - If you have OpenAPI specifications, add them to your
docs.jsonand configure the API playground. You can also generate MDX pages from your spec using the@mintlify/scrapingpackage:
npx @mintlify/scraping@latest openapi-file <openApiFilename> -o <folder-name>- Copy assets to your repository's
images/directory. - Update references in your Markdown files:

After completing your migration (automated or manual), we recommend checking:
- All pages render
- Navigation works as intended
- Internal links resolve properly
- Images and assets load correctly
- Code blocks display with proper syntax highlighting
- Search works
- Correct deployment branch