|
3 | 3 | * |
4 | 4 | * Captures key UI states from the TalentManagement app for use in blog posts |
5 | 5 | * and documentation. Each screenshot: |
6 | | - * - Is saved as a PNG in screenshots-output/{series}/ |
| 6 | + * - Is saved as a PNG in {repo-root}/docs/images/{series}/ |
7 | 7 | * - Gets a matching WAV narration file in the same folder (Windows TTS via speak.ps1) |
8 | 8 | * - Is registered in screenshot-catalog.json for AI-assisted blog writing |
9 | 9 | * |
10 | 10 | * Usage: |
11 | 11 | * npx playwright test --project=screenshots |
12 | 12 | * |
13 | 13 | * Output: |
14 | | - * screenshots-output/series-x/filename.png ← screenshot |
15 | | - * screenshots-output/series-x/filename.wav ← narration audio (Windows only) |
16 | | - * screenshot-catalog.json ← machine-readable index |
| 14 | + * ../../../../docs/images/series-x/filename.png ← screenshot (repo root docs folder) |
| 15 | + * ../../../../docs/images/series-x/filename.wav ← narration audio (Windows only) |
| 16 | + * screenshot-catalog.json ← machine-readable index |
17 | 17 | * |
18 | 18 | * Prerequisites: |
19 | 19 | * - Angular: http://localhost:4200 |
@@ -63,7 +63,7 @@ interface Catalog { |
63 | 63 | // Config |
64 | 64 | // --------------------------------------------------------------------------- |
65 | 65 |
|
66 | | -const OUTPUT_ROOT = path.join(__dirname, '..', '..', 'screenshots-output'); |
| 66 | +const OUTPUT_ROOT = path.join(__dirname, '..', '..', '..', '..', 'docs', 'images'); |
67 | 67 | const CATALOG_PATH = path.join(__dirname, '..', '..', 'screenshot-catalog.json'); |
68 | 68 | const SPEAK_SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'speak.ps1'); |
69 | 69 |
|
@@ -146,8 +146,8 @@ async function shot( |
146 | 146 | generateAudio(meta.narration, wavPath); |
147 | 147 |
|
148 | 148 | // 3. Upsert catalog entry |
149 | | - const relativePng = `screenshots-output/${series}/${filename}`; |
150 | | - const relativeWav = `screenshots-output/${series}/${baseName}.wav`; |
| 149 | + const relativePng = `docs/images/${series}/${filename}`; |
| 150 | + const relativeWav = `docs/images/${series}/${baseName}.wav`; |
151 | 151 |
|
152 | 152 | catalog.screenshots = catalog.screenshots.filter( |
153 | 153 | e => !(e.series === series && e.filename === filename) |
|
0 commit comments