Migration Guide
Learn how to migrate to Docus from other documentation frameworks, or upgrade from Docus v3 to the new v4 architecture.Migrating from Docus v3 to v4
Docus v4 introduces a new layer-based approach that leverages the official Nuxt CLI instead of the custom Docus CLI. While your existing content and configuration remain compatible, you’ll need to update your commands and project setup.Breaking Changes
The main breaking changes are related to CLI commands:| Docus v3 | Docus v4 |
|---|---|
npx docus init my-docs | npx create-docus my-docs |
docus dev | nuxt dev --extends docus |
docus build | nuxt build --extends docus |
Migration Steps
Update package.json
Update your dependencies and scripts in
package.json:package.json
Remove the old
docus CLI from devDependencies if present. The new version uses Nuxt CLI directly.Add better-sqlite3 dependency
Docus v4 requires
better-sqlite3 for Nuxt Content’s native SQLite connector:Update configuration (if needed)
If you have a custom
nuxt.config.ts, ensure it extends the Docus layer:nuxt.config.ts
Update environment variables
Review your environment variables. Some Studio and AI assistant configurations may have changed:
.env
What Stays the Same
Content Files
All your Markdown content works without changes. MDC syntax remains identical.
Components
Custom Vue components work the same way. No changes needed.
Frontmatter
Page frontmatter structure is backward compatible.
App Config
app.config.ts structure remains the same with new features added.New Features in v4
Nuxt 4 Support
Built on the latest Nuxt framework with improved performance and DX.
Tailwind CSS 4
Updated to Tailwind CSS 4 for modern styling capabilities.
AI Integration
Native LLM support with
llms.txt generation and MCP server.Studio Module
New self-hosted Studio module for visual content editing.
Migrating from Other Documentation Frameworks
Already using a Markdown-based documentation solution? Whether it’s Docus v1, VuePress, VitePress, Docusaurus, MkDocs, or another framework, migrating to Docus is straightforward.Why Migrate to Docus?
Docus offers a clean and maintainable solution with a single dependency: the Docus library itself. No need to manage multiple plugins or configurations. Everything is built-in and maintained together, making updates simple.Minimal Dependencies
Single
docus dependency includes everything you need.Vue Ecosystem
Full access to Nuxt and Vue’s powerful features.
MDC Syntax
Embed components in Markdown without complex configuration.
Built-in Features
Search, navigation, dark mode, and i18n work out of the box.
General Migration Steps
Update frontmatter (if needed)
Convert your existing frontmatter to Docus format:Before (VitePress/VuePress):After (Docus):
Convert custom components
If you already use Nuxt Content and MDC syntax:Most components should work directly. Check if equivalent components exist in Nuxt UI. If not, create your own custom components in
app/components/.If you use standard Markdown:Your files work as-is. Progressively enhance your docs by adding MDC components where useful.Migrate assets
Copy static assets to the Update image paths in your Markdown if needed.
public/ directory:Framework-Specific Migration Notes
From VitePress
From VuePress
From Docusaurus
From MkDocs
Content Enhancement
After migrating, enhance your documentation with Docus features:Add Components
Add Icons
Docus includes Lucide and Simple Icons out of the box:Configure SEO
Add frontmatter for better SEO:Troubleshooting
Content Not Displaying
Ensure files are in the
content/ directory and have .md or .mdx extensions.Components Not Working
Check that custom components are in
app/components/ and use kebab-case names.Navigation Issues
Verify file structure and use numbered prefixes for custom ordering.
Build Errors
Ensure
better-sqlite3 is installed and compatible with your Node.js version.Getting Help
Need assistance with your migration?Documentation
Browse the complete Docus documentation
GitHub Issues
Report issues or ask questions
GitHub Discussions
Join community discussions
Discord
Chat with the Nuxt community
Next Steps
Project Structure
Learn about Docus project organization
Studio Module
Edit your documentation visually in production