Skip to main content

Migration Guide: docs-v1 to Mintlify

This document outlines the systematic migration approach, patterns, and transformations used to migrate documentation from the legacy docs-v1 structure to the new Mintlify-based documentation system.

Migration Overview

Project Context

  • Source: docs-v1 (legacy documentation with 1,450+ files)
  • Target: Mintlify documentation framework
  • Goal: Maintain technical accuracy while improving user experience with modern components

Key Objectives

  1. Preserve Technical Accuracy: All code examples, configurations, and technical details must remain accurate
  2. Improve User Experience: Enhance readability and navigation with modern Mintlify components
  3. Maintain SEO: Preserve search optimization through proper frontmatter and structure
  4. Systematic Approach: Use consistent patterns for reliable, scalable migration

Completed Migrations

Phase 1: Core Infrastructure (Completed)

  1. Google SSO Configuration → security/sso/google.mdx
  2. Auth0 SSO Configuration → security/sso/auth0.mdx
  3. Okta SSO Configuration → security/sso/okta.mdx
  4. API Authentication → api/authentication.mdx
  5. Python SDK Overview → sdk/python/overview.mdx
  6. Python SDK API Reference → sdk/python/api-reference.mdx
  7. Java SDK Overview → sdk/java/overview.mdx

Phase 2: Database Connectors (Completed)

  1. MySQL Database Connector → connectors/database/mysql.mdx
  2. PostgreSQL Database Connector → connectors/database/postgres.mdx
  3. Snowflake Cloud Data Warehouse → connectors/database/snowflake.mdx
  4. Google BigQuery Connector → connectors/database/bigquery.mdx
  5. Amazon Redshift Connector → connectors/database/redshift.mdx
  6. Database Connectors Overview → connectors/database/overview.mdx

Phase 3: Infrastructure & Organization (Completed)

  • docs.json Cleanup: Removed 1,000+ non-existent page references to eliminate 404 errors
  • Navigation Streamlining: Created clean navigation structure with only existing pages
  • SDK Overview Enhancement → sdk/overview.mdx
  • Navigation Updates: Added database connectors overview to navigation structure

Component Transformation Patterns

1. Header Conversion

Source Pattern:
Target Pattern:
Rules:
  • Remove slug and collate fields
  • Simplify title (remove branding suffixes)
  • Ensure description is concise and quote-wrapped

2. Note/Warning Components

Source Pattern:
Target Pattern:
Rules:
  • Convert {%note%} to <Accordion> for expandable content
  • Convert {%important%} to <Accordion> with descriptive titles
  • Preserve markdown formatting within accordions

3. Connector Details Headers

Source Pattern:
Target Pattern:
Rules:
  • Replace connector headers with visual card groups
  • Convert feature lists to checkmark/cross lists with descriptions
  • Add overview section with connector purpose

4. Collate Branding

Source Pattern:
Target Pattern:
Rules:
  • Replace “OpenMetadata” with “Collate” in all text and code
  • Update package names and class names consistently
  • Maintain technical accuracy in examples

5. Configuration Examples

Source Pattern:
Target Pattern:
Rules:
  • Replace environment variable syntax with concrete examples
  • Use realistic placeholder values
  • Maintain YAML structure and indentation

File Organization Patterns

Directory Structure

Naming Conventions

  • Use kebab-case for file names (mysql.mdx, api-reference.mdx)
  • Group related content in subdirectories
  • Maintain logical hierarchy that matches navigation structure

Content Enhancement Patterns

1. Introduction Sections

Add visual elements:

2. Code Examples

Enhance with context:

3. Troubleshooting Sections

Structure with accordions:

Technical Migration Workflow

1. Pre-Migration Analysis

2. File Reading and Analysis

3. Content Transformation

  1. Header Conversion: Update frontmatter to Mintlify format
  2. Component Replacement: Transform legacy components to Mintlify equivalents
  3. Content Enhancement: Add visual elements and improve structure
  4. Branding Update: Replace OpenMetadata with Collate consistently

4. Quality Assurance

  • Verify all code examples are technically accurate
  • Test navigation links and internal references
  • Validate Mintlify component syntax
  • Check responsive design elements

docs.json Management

Best Practices

  1. Only Include Existing Pages: Prevent 404 errors by verifying file existence
  2. Logical Grouping: Group related content under meaningful section names
  3. Progressive Addition: Add navigation entries as content is migrated
  4. Consistent Naming: Match navigation names to actual page titles

Error Prevention

Common Issues and Solutions

1. 404 Errors

Problem: Navigation references non-existent pages Solution: Audit docs.json against actual file structure regularly

2. Component Syntax Errors

Problem: Invalid Mintlify component syntax Solution: Use established patterns and test locally Problem: Links pointing to non-migrated content Solution: Update links progressively or use placeholder pages

4. Inconsistent Branding

Problem: Mixed OpenMetadata/Collate references Solution: Systematic find-and-replace with manual verification

Future Migration Priorities

High Priority (Next Phase)

  1. Database Connectors: PostgreSQL, Snowflake, BigQuery
  2. Connector Overview Pages: Create category landing pages
  3. Basic Administration: User management, roles, policies

Medium Priority

  1. Data Quality Guides: Profiler, quality tests, incident management
  2. Data Governance: Classification, glossary, domains
  3. Deployment Guides: Docker, bare metal, cloud platforms

Low Priority

  1. Advanced Features: Workflows, automation, custom integrations
  2. Developer Guides: API examples, custom connectors
  3. Troubleshooting: Detailed problem-resolution guides

Tools and Commands

Development Setup

Content Validation

Success Metrics

Completed Achievements

  • ✅ Zero 404 Errors: Cleaned navigation to only include existing content
  • ✅ Consistent Branding: Systematic OpenMetadata → Collate transformation
  • ✅ Enhanced UX: Modern Mintlify components improve readability
  • ✅ Technical Accuracy: All code examples and configurations verified
  • ✅ Scalable Patterns: Established reusable transformation patterns

Ongoing Targets

  • Content Coverage: Migrate 50+ high-priority pages from docs-v1
  • User Experience: Maintain fast load times and intuitive navigation
  • Search Optimization: Proper frontmatter and structure for discoverability
  • Maintenance Efficiency: Clear patterns for future content updates

This migration guide serves as both documentation and reference for continuing the systematic transformation of docs-v1 content to the modern Mintlify framework. All patterns established here should be consistently applied to ensure quality and maintainability.