Migrate from Docusaurus
Migrate Docusaurus documentation to Mintlify, including MDX pages, sidebars, versions, localized content, assets, and custom components.
Migrate a public Docusaurus 2 or 3 site with the Mintlify scraper. If you need more precise control over versions, localized content, or custom React components, migrate from your source repository.
Choose a method
For complex sites, combine both methods. Scrape your public site to create an initial docs.json and convert components, then compare the result with the source repository for missing content.
Migrate a public site
The -p puppeteer flag installs Puppeteer, which the scraper uses to render the site in a browser. Without Puppeteer, the scraper fetches pages without a browser and the generated navigation may be incomplete.
If your Docusaurus documentation uses a route base path, filter to scrape that path:
The scraper detects Docusaurus, expands its sidebar, downloads reachable images, converts common rendered components to Mintlify components, and creates a docs.json from the published navigation.
After the scraper finishes, compare the generated Mintlify navigation with your sidebars.js, sidebars.ts, or other Docusaurus navigation structure. Check for collapsed categories, external links, generated category index pages, and pages excluded from the published sidebar.
Migrate from source
Copy the following source content into a separate migration branch or working directory.
Copy Markdown and MDX pages into your Mintlify project. Every page needs frontmatter with at least a title.
Recreate navigation
Docusaurus sidebars are executable JavaScript or TypeScript, while Mintlify navigation is data in docs.json. Convert the resolved sidebar, not only its source text, if the sidebar uses functions or custom generators.
Docusaurus uses the file hierarchy for autogenerated sidebars. Mintlify lets you organize navigation independently from file locations, so you do not need to rename pages solely to match the sidebar.
Convert Docusaurus MDX
Standard Markdown usually works without changes. Review Docusaurus-specific syntax and imports.
Custom React components do not migrate automatically from your source repository. Determine whether each component is content, presentation, or application behavior.
Preserve routes and links
Docusaurus combines the docs plugin routeBasePath, page frontmatter slug, version, and locale to create a URL. Create an inventory from the published sitemap rather than inferring every URL from filenames.
When you rename or reorganize a page, add its old published path to redirects. Test links with and without the former route base path, for example /docs/getting-started and /getting-started.
Review explicit Docusaurus heading IDs such as:
Convert them to Mintlify’s custom heading ID syntax when you must preserve inbound anchor links:
Migrate assets
Docusaurus supports global assets in static/ and assets stored beside versioned pages. Copy both kinds into the Mintlify repository.
Migrate versions and languages
Docusaurus stores frozen versions under versioned_docs/version-<name> and their navigation under versioned_sidebars/. Map each maintained version to a Mintlify version. Decide whether current, the latest released version, or another version should be the default.
Map Docusaurus locale directories to Mintlify language navigation. Preserve the locale prefix in redirects when the old site used paths such as /fr/docs/....
If your source repository contained unpublished or restricted pages, configure authentication and page visibility, then test your site as a signed-out user and as a member of each group.
Migrate API documentation
Locate OpenAPI or AsyncAPI files referenced by plugins, custom pages, or build scripts. Add the original specification to the Mintlify repository and configure OpenAPI-generated pages. Do not migrate rendered endpoint HTML when the source specification is available.
Review your migration
Compare your migrated pages against your sidebar entries and published sitemap, then preview every maintained version and language.
Search your converted files for leftover Docusaurus syntax, which renders as literal text or fails the build: @theme, @site, :::, DocCardList, useDocusaurusContext, and custom plugin imports.