|
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 {repo-root}/docs/images/{series}/ |
| 6 | + * - Is saved as a PNG in {repo-root}/docs/screenshots/{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 | | - * ../../../../docs/images/series-x/filename.png ← screenshot (repo root docs folder) |
15 | | - * ../../../../docs/images/series-x/filename.wav ← narration audio (Windows only) |
16 | | - * ../../../../docs/images/screenshot-catalog.json ← machine-readable index |
| 14 | + * ../../../../docs/screenshots/series-x/filename.png ← screenshot (repo root docs folder) |
| 15 | + * ../../../../docs/screenshots/series-x/filename.wav ← narration audio (Windows only) |
| 16 | + * ../../../../docs/screenshots/screenshot-catalog.json ← machine-readable index |
17 | 17 | * |
18 | 18 | * Prerequisites: |
19 | 19 | * - Angular: http://localhost:4200 |
@@ -63,8 +63,8 @@ interface Catalog { |
63 | 63 | // Config |
64 | 64 | // --------------------------------------------------------------------------- |
65 | 65 |
|
66 | | -const OUTPUT_ROOT = path.join(__dirname, '..', '..', '..', '..', 'docs', 'images'); |
67 | | -const CATALOG_PATH = path.join(__dirname, '..', '..', '..', '..', 'docs', 'images', 'screenshot-catalog.json'); |
| 66 | +const OUTPUT_ROOT = path.join(__dirname, '..', '..', '..', '..', 'docs', 'screenshots'); |
| 67 | +const CATALOG_PATH = path.join(__dirname, '..', '..', '..', '..', 'docs', 'screenshots', 'screenshot-catalog.json'); |
68 | 68 | const SPEAK_SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'speak.ps1'); |
69 | 69 |
|
70 | 70 | // Set SCREENSHOTS_VOICE env var to choose a Windows TTS voice, e.g: |
@@ -146,8 +146,8 @@ async function shot( |
146 | 146 | generateAudio(meta.narration, wavPath); |
147 | 147 |
|
148 | 148 | // 3. Upsert catalog entry |
149 | | - const relativePng = `docs/images/${series}/${filename}`; |
150 | | - const relativeWav = `docs/images/${series}/${baseName}.wav`; |
| 149 | + const relativePng = `docs/screenshots/${series}/${filename}`; |
| 150 | + const relativeWav = `docs/screenshots/${series}/${baseName}.wav`; |
151 | 151 |
|
152 | 152 | catalog.screenshots = catalog.screenshots.filter( |
153 | 153 | e => !(e.series === series && e.filename === filename) |
|
0 commit comments