Migrating to docmd

docmd provides a fully automated migration engine to help you transition from legacy or competing documentation platforms with a single command. The goal of the migration engine is to eliminate the tedious work of moving your markdown files and restructuring your project directory.

How It Works

The migration command will:

  1. Detect your existing configuration file (e.g. docusaurus.config.js, mkdocs.yml).
  2. Extract core metadata like your site’s title.
  3. Backup your existing files and directories safely into a *-backup/ directory (e.g., docusaurus-backup/).
  4. Copy your Markdown content into the standard docmd docs/ directory.
  5. Generate a fresh docmd.config.js tailored for your content.

You can then run npx @docmd/core dev immediately to see your content rendered in the docmd engine.

What is Migrated

Feature Migrated Automatically?
Markdown Files ✅ Yes, all .md and .mdx files are moved to docs/
Directory Structure ✅ Yes, your folder nesting is preserved
Site Title ✅ Yes, extracted from your config
Navigation / Sidebar ⚠️ No, requires manual mapping
Localisation (i18n) ⚠️ No, requires manual mapping
Versioning ⚠️ No, requires manual mapping
Custom React/Vue Components ❌ No, these must be replaced with docmd Containers

Why Navigation and i18n Aren’t Automatically Migrated

Every documentation platform handles navigation sidebars, translations, and multi-versioning differently. For example, Docusaurus uses complex JavaScript objects or autogenerated sidebars, while MkDocs relies on strictly indented YAML structures.

Rather than risking an incorrect, broken migration by guessing complex configurations, docmd moves your content safely and asks you to configure navigation, localisation, and versioning natively using docmd’s simple JSON-based APIs.

Supported Platforms

Select your current platform for specific migration instructions: