Skip to content

CodeFreezeAI/Swift-MultiLine-Diff-WebSite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MultiLineDiff Website

The official website for MultiLineDiff - The World's Most Advanced Diffing System.

🌟 Features

  • Modern Design: Dark theme with indigo/purple gradients
  • Responsive: Works perfectly on desktop, tablet, and mobile
  • Interactive Documentation: Expandable sections with comprehensive guides
  • Live Demo: Interactive algorithm comparison and diff generation
  • Performance Charts: Real benchmark data visualization
  • Syntax Highlighting: Prism.js integration for code examples
  • Smooth Animations: GPU-accelerated transitions and effects

πŸ“ Project Structure

website/
β”œβ”€β”€ index.html              # Main page
β”œβ”€β”€ css/
β”‚   β”œβ”€β”€ styles.css          # Main styles and variables
β”‚   β”œβ”€β”€ components.css      # Component-specific styles
β”‚   └── animations.css      # Animation definitions
β”œβ”€β”€ js/
β”‚   β”œβ”€β”€ main.js            # Core functionality
β”‚   β”œβ”€β”€ demo.js            # Interactive demo
β”‚   └── performance.js     # Chart.js performance charts
β”œβ”€β”€ images/
β”‚   └── favicon.svg        # Site favicon
β”œβ”€β”€ deploy.sh              # Deployment script
β”œβ”€β”€ package.json           # Dependencies
β”œβ”€β”€ .gitignore            # Git ignore rules
└── README.md             # This file

πŸš€ Quick Start

Local Development

  1. Clone the repository:

    git clone https://github.com/codefreezeai/swift-multi-line-diff.git
    cd swift-multi-line-diff/website
  2. Start a local server:

    # Using Python 3
    python -m http.server 8000
    
    # Using Python 2
    python -m SimpleHTTPServer 8000
    
    # Using Node.js
    npx http-server
    
    # Using PHP
    php -S localhost:8000
  3. Open in browser:

    http://localhost:8000
    

Dependencies

The website uses CDN dependencies for optimal performance:

  • Chart.js: Performance visualization
  • Prism.js: Syntax highlighting
  • Google Fonts: Inter and JetBrains Mono fonts

πŸ“– Documentation Sections

The website includes comprehensive documentation covering:

πŸš€ Quick Start Guide

  • Installation instructions
  • Basic usage examples
  • AI-friendly ASCII format
  • Round-trip workflow

πŸ€– ASCII Diff Format

  • Symbol rules and meanings
  • Visual representation guide
  • Real-world examples
  • AI integration benefits

⚑ Flash & Optimus Algorithms

  • Performance comparison tables
  • Algorithm selection guide
  • Usage examples
  • Technical details

πŸ”§ Enhanced Parser

  • New features overview
  • Source start line tracking
  • Metadata structure
  • Practical benefits

🌟 Revolutionary Features

  • Unique innovations
  • Superiority comparisons
  • Security features
  • Complete feature list

πŸ“– API Reference

  • Core methods documentation
  • Algorithm enums
  • Display formats
  • Usage examples

🎨 Design System

Color Palette

  • Primary: #6366f1 (Indigo)
  • Secondary: #10b981 (Emerald)
  • Accent: #f59e0b (Amber)
  • Background: #0f0f23 (Dark Navy)
  • Text: #f8fafc (Light Gray)

Typography

  • Headings: Inter (Google Fonts)
  • Body: Inter (Google Fonts)
  • Code: JetBrains Mono (Google Fonts)

Components

  • Cards: Rounded corners, subtle shadows
  • Buttons: Gradient backgrounds, hover effects
  • Code Blocks: Dark theme, syntax highlighting
  • Tables: Responsive, alternating rows

πŸš€ Deployment

Automated Deployment

Use the included deployment script:

# Make executable
chmod +x deploy.sh

# Deploy to development
./deploy.sh dev

# Deploy to staging
./deploy.sh staging

# Deploy to production
./deploy.sh production

Manual Deployment

Netlify

  1. Connect your GitHub repository
  2. Set build command: # No build needed
  3. Set publish directory: website
  4. Deploy

Vercel

  1. Import project from GitHub
  2. Set framework preset: Other
  3. Set root directory: website
  4. Deploy

GitHub Pages

  1. Go to repository Settings
  2. Enable GitHub Pages
  3. Set source to main branch, website folder
  4. Access at https://username.github.io/repository-name

Traditional Hosting

  1. Upload website folder contents to web root
  2. Ensure server supports HTML5 history API
  3. Configure HTTPS (recommended)

πŸ”§ Customization

Updating Content

  1. Hero Section: Edit index.html lines 60-120
  2. Features: Modify feature cards in index.html
  3. Documentation: Update expandable sections
  4. Performance Data: Modify js/performance.js

Styling Changes

  1. Colors: Update CSS variables in css/styles.css
  2. Fonts: Change Google Fonts imports in index.html
  3. Layout: Modify grid systems in css/components.css
  4. Animations: Adjust timing in css/animations.css

Adding New Sections

  1. Add HTML structure to index.html
  2. Create corresponding styles in css/components.css
  3. Add JavaScript functionality in js/main.js
  4. Update navigation links

πŸ“Š Performance

Optimization Features

  • Lazy Loading: Images and non-critical resources
  • CDN Dependencies: Fast loading from global CDNs
  • Minification: CSS and JS optimization for production
  • Caching: Proper cache headers for static assets
  • Responsive Images: Optimized for different screen sizes

Lighthouse Scores

  • Performance: 95+
  • Accessibility: 100
  • Best Practices: 100
  • SEO: 100

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open a Pull Request

πŸ“ License

This project is part of the MultiLineDiff library created by Todd Bruss Β© xcf.ai.

πŸ”— Links


MultiLineDiff: The World's Most Advanced Diffing System πŸš€

About

Interactive Swift Multi Line Diff Website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published