diff --git a/scripts/README.md b/scripts/README.md index 0b52f3c..8a95758 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -308,6 +308,36 @@ npm run build:images # Runs optimize-images.js **Issue:** Missing routes in sitemap **Solution:** Update static page, blog post, or project arrays in `generate-sitemap.js` +## Missing Scripts + +### `generate-blog-images.mjs` + +**Status:** ❌ **MISSING** - Referenced in package.json but not implemented + +**Package.json References:** +```json +"generate:images": "node scripts/generate-blog-images.mjs" +"generate:images:dry": "node scripts/generate-blog-images.mjs --dry-run" +``` + +**Description (from spec):** +This script is intended to generate AI-powered images for blog posts using the OpenAI API. It should support a `--dry-run` flag for testing without actually generating images. + +**Recommended Action:** +Choose one of the following: +1. **Remove references** - If AI image generation is not needed, remove the npm scripts from package.json +2. **Implement the script** - Create the script with the following features: + - OpenAI API integration for image generation + - `--dry-run` flag support for testing + - Process blog posts and generate featured images + - Proper error handling and progress logging + - API key management (environment variables) + +**Impact:** +Running `npm run generate:images` or `npm run generate:images:dry` will fail with "Cannot find module" error until this is resolved. + +--- + ## Notes - Scripts use both `.js` (CommonJS) and `.mjs` (ES Module) extensions