# =============================================================================
# CONTENT MANAGEMENT COMMANDS - Rustelo Framework
# =============================================================================
# Content management and localization tools

# Build localized content from markdown to HTML
content-build:
    @echo "🌍 Building localized content..."
    ./scripts/content/build-localized-content.sh

# Generate new content from templates
content-generate type title *args:
    @echo "📝 Generating {{type}}: {{title}}"
    ./scripts/content/generate-content.sh {{type}} --title "{{title}}" {{args}}

# Sync translations across languages
content-sync command *args:
    @echo "🔄 Synchronizing translations..."
    ./scripts/content/sync-translations.sh {{command}} {{args}}

# Check for missing translations
content-missing:
    @echo "🔍 Checking for missing translations..."
    ./scripts/content/sync-translations.sh check-missing

# Generate missing translation placeholders
content-generate-missing:
    @echo "📋 Generating missing translation placeholders..."
    ./scripts/content/sync-translations.sh generate-missing

# Validate content structure and translations
content-validate:
    @echo "🔍 Validating content..."
    ./scripts/content/validate-content.sh

# Build content converter binary
content-build-converter:
    @echo "🔧 Building content converter..."
    cargo build --bin markdown_converter --features content-static
