Skip to content

Commit 786b8fa

Browse files
Rename output folder from docs/images to docs/screenshots
1 parent 28c9259 commit 786b8fa

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/screenshots/blog-screenshots.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
*
44
* Captures key UI states from the TalentManagement app for use in blog posts
55
* 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}/
77
* - Gets a matching WAV narration file in the same folder (Windows TTS via speak.ps1)
88
* - Is registered in screenshot-catalog.json for AI-assisted blog writing
99
*
1010
* Usage:
1111
* npx playwright test --project=screenshots
1212
*
1313
* 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
1717
*
1818
* Prerequisites:
1919
* - Angular: http://localhost:4200
@@ -63,8 +63,8 @@ interface Catalog {
6363
// Config
6464
// ---------------------------------------------------------------------------
6565

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');
6868
const SPEAK_SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'speak.ps1');
6969

7070
// Set SCREENSHOTS_VOICE env var to choose a Windows TTS voice, e.g:
@@ -146,8 +146,8 @@ async function shot(
146146
generateAudio(meta.narration, wavPath);
147147

148148
// 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`;
151151

152152
catalog.screenshots = catalog.screenshots.filter(
153153
e => !(e.series === series && e.filename === filename)

0 commit comments

Comments
 (0)