Link the video guides from README, README.sv, and the in-app Guide page
Commit all 7 recorded clips to docs/videos/ (alongside the existing docs/screenshots/) instead of leaving them in the gitignored video-guides/ folder from the earlier feasibility spike - they're meant to be shipped, discoverable assets now, not scratch output. scripts/record-video-guides.mjs writes there by default going forward. Added a "Video Guides" section to README.md/README.sv.md (Getting started + Interface tour groups) and a matching in-app "Video guides" panel on the Guide page, right after the overview cards - the most discoverable spot for a brand-new user. Links point at /docs/videos/<name>.mkv, served by the server's existing /docs static route. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,8 +14,10 @@
|
||||
//
|
||||
// Usage: node scripts/record-video-guides.mjs [clip-name ...]
|
||||
// With no arguments, records every clip below. Pass one or more names (e.g.
|
||||
// "settings-tabs") to record only those. Output lands in video-guides/<name>.mkv
|
||||
// (gitignored - these are sizeable binaries, not something to commit by default).
|
||||
// "settings-tabs") to record only those. Output lands in docs/videos/<name>.mkv,
|
||||
// alongside docs/screenshots - these are committed, linked from README.md/README.sv.md
|
||||
// and the in-app Guide page, so re-run this and commit the result whenever a clip's
|
||||
// flow changes enough that the recording no longer matches reality.
|
||||
//
|
||||
// Requires ffmpeg and Piper (`pipx install piper-tts`) on PATH, plus a downloaded voice
|
||||
// model - by default ~/.local/share/piper-voices/en_US-lessac-medium.onnx (get it from
|
||||
@@ -37,7 +39,7 @@ import { RACE_AUDIO_EVENT_DEFINITIONS } from "../src/race_audio.js";
|
||||
const SILENCED_EVENTS = Object.fromEntries(RACE_AUDIO_EVENT_DEFINITIONS.map((definition) => [definition.key, { effect: false, voice: false }]));
|
||||
|
||||
const projectDir = dirname(dirname(fileURLToPath(import.meta.url)));
|
||||
const outputDir = join(projectDir, "video-guides");
|
||||
const outputDir = join(projectDir, "docs", "videos");
|
||||
const chrome = [process.env.CHROME_PATH, "/usr/bin/google-chrome", "/usr/bin/chromium", "/usr/bin/chromium-browser"].find((p) => p && existsSync(p));
|
||||
if (!chrome) throw new Error("Chrome/Chromium not found. Set CHROME_PATH to the browser executable.");
|
||||
try { execFileSync("piper", ["--help"], { stdio: "ignore" }); } catch { throw new Error("piper not found on PATH (used for narration audio). Install with: pipx install piper-tts"); }
|
||||
|
||||
Reference in New Issue
Block a user