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:
- Detect your existing configuration file (e.g.
docusaurus.config.js,mkdocs.yml). - Extract core metadata like your site’s
title. - Backup your existing files and directories safely into a
*-backup/directory (e.g.,docusaurus-backup/). - Copy your Markdown content into the standard
docmddocs/directory. - Generate a fresh
docmd.config.jstailored 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.
- Navigation: Learn how to create a
navigation.jsonin the Navigation Setup. - Localisation: See the Localisation Guide for setting up multi-language docs.
- Versioning: Refer to the Versioning Setup.
Supported Platforms
Select your current platform for specific migration instructions: