zer0-mistakes Theme Installation Update

Summary of Changes

I’ve successfully updated both the zer0.md build instructions and the install.sh script to provide a simplified, streamlined installation process that’s optimized for Azure Static Web Apps deployment.

Key Improvements

1. Simplified Installation in zer0.md

Before: Complex manual setup with multiple shell commands creating directories, configuration files, and Azure workflows.

After: Single command installation that handles everything automatically:

# Navigate to your repository directory
cd $ZREPO

# Download and run the zer0-mistakes theme installer directly from GitHub
curl -fsSL https://raw.githubusercontent.com/bamr87/zer0-mistakes/main/install.sh | bash

2. Enhanced install.sh Script Features

3. Azure Static Web Apps Optimization

The installation now creates the optimal directory structure for Azure Static Web Apps:

4. Pre-configured GitHub Actions

Automatically creates .github/workflows/azure-static-web-apps.yml with:

Installation Options

curl -fsSL https://raw.githubusercontent.com/bamr87/zer0-mistakes/main/install.sh | bash

Option 2: Clone and Install

git clone https://github.com/bamr87/zer0-mistakes.git temp-theme
./temp-theme/install.sh .
rm -rf temp-theme

Option 3: Local Installation (if you have the repo locally)

./install.sh /path/to/target/directory

What Gets Installed

Next Steps After Installation

  1. Start Development:
    docker-compose up
    # OR
    bundle install && bundle exec jekyll serve --config _config_dev.yml
    
  2. Azure Deployment:
    • Create Azure Static Web App in Azure portal
    • Add AZURE_STATIC_WEB_APPS_API_TOKEN to GitHub repository secrets
    • Push to main branch to trigger deployment
  3. Customization:
    • Edit _config.yml for site settings
    • Update index.md for homepage content
    • Add content to pages/ directory
    • Customize styles in _sass/custom.scss

Benefits

This update follows all the IT-Journey principles: