Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/skills/cracktro/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ A PR that adds or changes a slide must show it: upload a 16:9 `.stage` capture (

- `docs/public/cracktro/fonts/`: Monaspace Neon plus its OFL licence. Mona Sans comes from `docs/public/fonts/`.
- `docs/public/cracktro/wizard.js`: `window.CracktroWizard`, a choose-your-own-adventure dialog replaying githubnext/gh-aw-wizard (W, dock button via `create({ wizard })`), loaded with `wizard-data.js` before `deck.js`. `wizard-data.js` is generated by `refresh/wizard.mjs` (`refresh/wizard.md`); never edit it by hand.
- `cracktro/captions.js`: kiosk closed captions (C), generated by the docs build and dev server (`docs/src/lib/cracktro/`) from the `slides.md` Captions fields; not in `docs/public/`.
- `cracktro/captions.js`: kiosk closed captions (C), also read aloud by the voice (V, browser `speechSynthesis`; button disabled where unsupported), generated by the docs build and dev server (`docs/src/lib/cracktro/`) from the `slides.md` Captions fields; not in `docs/public/`.
- `docs/tests/talk.spec.ts`: Playwright tests of the deck, runtime, parser and built JSON-LD against `slides.md`.
- `docs/src/lib/cracktro/`: `slides.js` parses `slides.md` and renders JSON-LD; `integration.js` (Astro) applies it.
- `docs/README.md` "Interactive talk": user-facing description (keys, public-content rules).
Expand Down
2 changes: 1 addition & 1 deletion .github/skills/cracktro/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ sandbox, firewall, read-only token
- **Notes** (optional): `illustrative` when the speaker notes must match `/illustrative|synthetic|simulated/i`; omit the field otherwise.
- **Summary**: one public sentence with the slide's executive takeaway. Start band headers with `Band header (<band>):`. Describe the durable point, not measured counts or dates that age. No URLs, handles or slide numbers.
- **Keywords**: comma-separated public search terms a viewer might type for this slide: synonyms, acronyms, feature and option names, pattern names. Prefer terms absent from the Heading and Summary; each must be accurate for the slide. No URLs, handles or slide numbers.
- **Captions**: the kiosk closed captions (C): a short two-speaker TV news conversation retelling the Summary, one `- ` list item per turn, at least two turns, alternating speakers (each turn a sentence or two). Public, plain text: no URLs, handles, slide numbers, real people or mascot names.
- **Captions**: the kiosk closed captions (C), also spoken by the voice (V): a short two-speaker TV news conversation retelling the Summary, one `- ` list item per turn, at least two turns, alternating speakers (each turn a sentence or two). Public, plain text: no URLs, handles, slide numbers, real people or mascot names.

A field's lines join with spaces, so long text may wrap. `docs/src/lib/cracktro/slides.js` parses this file and fails, with the line number, on a malformed slide title, an invalid Id, an unknown, repeated, missing or out-of-order field, an empty Heading, Summary, keyword or caption turn, fewer than two caption turns, an unknown Notes value or a duplicate. The docs build injects every slide into the talk page's JSON-LD (`hasPart`: position, name, description, keywords, `#<id>` URL); the deck's fuzzy search (`/`) reads keywords from there, and `docs/tests/talk.spec.ts` checks the deck's ids, headings and that metadata against this list. The build and dev server also generate `cracktro/captions.js` (`window.CracktroCaptions`) from the Captions fields; it is never committed, so the plain `python3 -m http.server` preview has no captions and kiosk CC falls back to each slide's notes.

Expand Down
5 changes: 4 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ button or leaving fullscreen stops kiosk mode. Kiosk mode starts with closed cap
CC button in the kiosk dock) turns them off or on, and the choice holds for later kiosk runs. Like a muted TV in a bar or airport, a short two-speaker news conversation
about each slide rolls in as captions at the bottom of the screen, and each slide stays up until its
conversation ends. C starts kiosk mode if needed, and captions end with it; while it runs, Escape stops it before it
hides notes. A manual move restarts the countdown, and an open
hides notes. V (or the voice button beside CC in the kiosk dock) reads the same conversation aloud
with the browser's built-in speech synthesis, alternating two voices (or two pitches), and holds each slide until
its last line is spoken (at most 60 s past the slide's dwell); voice is off by default, starts kiosk mode if needed, ends with it, and the choice holds for
later kiosk runs. Where the browser has no speech synthesis the voice button is disabled. A manual move restarts the countdown, and an open
dialog holds the current slide. The slide map button (or G) opens a full-screen grid of
every slide under its band's title, each pattern's examples beside it, with the current slide focused and the tiles fanning in from it; arrows move between
tiles and Enter or a click jumps there. The search button next to the sound toggle (or `/`,
Expand Down
2 changes: 2 additions & 0 deletions docs/public/cracktro/runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ declare namespace CracktroDeck {
kiosk(on?: boolean): boolean;
/** Start (`true`), stop (`false`) or toggle closed captioning (CC); starting it starts kiosk mode, stopping kiosk mode stops it. Returns whether it is on. */
captions(on?: boolean): boolean;
/** Start (`true`), stop (`false`) or toggle the voice (V): browser speech synthesis reads the caption lines aloud; starting it starts kiosk mode, stopping kiosk mode stops it. Always `false` where the browser lacks speech synthesis. Returns whether it is on. */
voice(on?: boolean): boolean;
}

interface API {
Expand Down
Loading