Migrate / Docusaurus

Zip the docs folder. That is the whole export.

Docusaurus is the best understood source here. The importer reads sidebar positions, category labels from your category files, MDX alongside Markdown, and draft flags. Your versioned docs folders map onto real versions.

_category_.json is read sidebar_position honoured versioned_docs become versions

Why people move

Nothing wrong with Docusaurus. Plenty wrong with maintaining it.

Docusaurus is a good static site generator and the people leaving it usually say so. What they are giving up is a build pipeline, not a feature.

Non developers cannot edit it

Support and product people can fix a typo in the WordPress editor. They cannot open a pull request against a repo and wait for a deploy.

One site instead of two

If your marketing site is already WordPress, the docs stop being a separate build, a separate deploy, and a separate thing to keep upgraded.

Editorial workflow

Review states, Slack notifications, expiring preview links for drafts, and a content health scan. Git gives you history, not a review queue for writers.

Structure

Your sidebar config comes with you

Most sources make the importer guess at folder names and ordering. Docusaurus writes both down, and the importer reads them.

  • Category files are read. Both _category_.json and _category_.yaml, for the folder label and its position.
  • sidebar_position sets doc order. The same key you already use, with no renaming needed.
  • sidebar_label and id are used. Short labels become nav labels, and the id becomes the slug.
In your repo
docs/
  getting-started/
    _category_.json
    intro.md
    quickstart.md
  api/
    _category_.json
    auth.mdx
In WP Super Docs
Getting Started
Introduction
Quickstart
API Reference
Authentication

Category labels came from the category files, not the folder names.

The process

No export step at all

Your content is already Markdown in a folder. There is nothing to convert and no export tool to run, so this is the shortest migration of the nine.

  1. 1
    Zip the docs folder Straight from your repo. Keep the folder structure and the category files, since both are read.
  2. 2
    Create a product One product per Docusaurus site. If you run a monorepo with several docs plugins, that is one product each.
  3. 3
    Import versions oldest first If you use versioned docs, zip each versioned_docs folder separately and import each into its own version. Do the current docs folder last.
  4. 4
    Review, fix images and components, publish Check anything that used MDX components, upload images from your static folder, then publish.
Import Markdown ZIP upload
version-1.9.zip 1.7 MB
Payments API
v1.9

One versioned_docs folder per run rebuilds your whole version history.

Overwrite existingUpdate docs whose slug already matches
52created
8categories
3as drafts

Three files had draft true in the frontmatter, so they stayed drafts.

Frontmatter

The keys you already write

Nothing here asks you to change your files first. These are standard Docusaurus keys and the importer reads them as they are.

Key in your fileBecomesIf missing
titleDocument titlesidebar_label, then the filename
id or slugURL slugThe filename
sidebar_labelShort label in the navigationThe title is used
sidebar_positionPosition in the sidebarZero, so alphabetical
descriptionExcerpt, used in search and related docsLeft empty
draftDraft, so it stays unpublishedPublished
_category_.jsonFolder label and folder orderFolder name, cleaned up

That last row is what no other source has. Your folder labels and their ordering come from the file you already maintain, rather than being guessed from directory names.

Before you commit

What lands cleanly, and what needs an hour

Structure comes across better here than from any other source. Components are where the work is.

Comes across automatically

  • Page titles, slugs, and descriptions
  • Category labels and order from your category files
  • sidebar_position, so doc order is kept
  • draft true, so unfinished pages stay drafts
  • Code blocks with their language intact
  • Plain HTML in your MDX, left alone

Plan an hour for these

  • MDX components are removed with their content. A paired component like Tabs is stripped along with everything inside it. If your code examples live in Tabs, that content does not arrive. Move it to fenced code blocks before you export, or rebuild it with the tabbed code block shortcode afterwards.
  • Admonitions need converting. The three colon syntax is not Markdown, so it arrives as literal text. Swap those for the callout shortcode, which has the same five types.
  • Images are not imported. Files in your static folder are not in the docs ZIP and are not uploaded. Add them to your media library and relink.
  • Redirects are not created. Set up 301s from your old paths if the docs ranked.

Questions

Before you start

What happens to my versioned docs?

They map across directly. Zip each versioned_docs folder, import each into its own version oldest first, then do the current docs folder last. Your whole history comes with you.

What about my Tabs components?

Their content is stripped along with the tags, so plan for it. The simplest route is converting them to fenced code blocks before exporting, then rebuilding them with the tabbed code block shortcode once the content is in.

Does plain HTML in my MDX survive?

Yes. Only capitalised tags are stripped, which is the JSX convention. Lowercase HTML tags are left exactly as they are.

Can I keep writing in Markdown?

Not as your source of truth. Content becomes WordPress posts, edited in the WordPress editor. If a Markdown workflow is the reason you chose Docusaurus, that is worth weighing before you move.

What about i18n folders?

Import the default language first, then handle translations through WPML or Polylang, both of which are supported. Do not expect the i18n folder structure to map across on its own.

Can I try before I buy?

Zip your docs folder and send it over. We will tell you honestly how much MDX cleanup you are looking at before you spend anything.

Next step

Send us your docs folder.

We will tell you how much MDX cleanup you are actually looking at, before you spend anything. There is a 14 day money back guarantee behind the purchase.

Docusaurus is a trademark of Meta Platforms Inc. and is not affiliated with Nahnu Plugins. Import behaviour described here reflects WP Super Docs version 1.5.75.

Save to list

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only