Scripts Directory

This directory contains utility PowerShell scripts for maintaining and managing the christaylor.codes website.

Available Scripts

Image Management

analyze-images.ps1

optimize-images.ps1

CSS & Security

calculate-css-hash.ps1

Project Statistics

sync-project-stats.ps1

Usage:

.\scripts\sync-project-stats.ps1 -FetchGalleryStats

Deployment (Legacy)

deploy.ps1

fix-readme-backticks.ps1

Running Scripts

All scripts should be run from the repository root directory:

# From repository root
.\scripts\script-name.ps1

Frequently Used Scripts

Scripts that are used regularly remain in the root directory for convenience:

Adding New Scripts

When adding new utility scripts:

  1. Place them in this directory
  2. Add documentation to this README
  3. Include usage examples
  4. Add error handling and help comments
  5. Test thoroughly before committing

See Also