You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8a2766
Browse filesBrowse the repository at this point in the historyBrowse files
feat(deck): notesMode keep|strip|export — speaker notes policy for the PPTX build (#666)
* feat(deck): notesMode keep|strip|export — speaker notes policy for the PPTX build
deck.json "notesMode" decides what the build does with each slide's "notes":
"keep" (default, unchanged) writes them as speaker notes; "strip" leaves them
out of the .pptx; "export" leaves them out and writes <output stem>.notes.md
next to the .pptx (one "## pageNN — title" section per slide, {{...}} styling
removed), returned as notes_path by generate / generate_pptx.
A deck handed to an audience must not carry the presenter's script, which
imported slides often bring along in their original notes. The slide files keep
their notes, so composing and check_specs are unchanged; an invalid value is a
check_specs error and stops the build (no silent default). Partial builds
(only_slugs / iso.pptx) write no notes file.
- engine/schema: NOTES_MODES, deck_notes_mode(), validate_specs error
- engine/builder: PPTXBuilder(write_notes=...)
- engine/notes.py: plain_notes_text, speaker_notes_markdown
- api: BuildConfig.notes_mode, generate() export + notes_path
- guide slide-json-spec.md, CHANGELOG, tests/test_notes_mode.py (22)
* fix(notesMode): remote generate_pptx uploads the exported notes; stale notes file cleanup; PPTX-only note
Review on #666:
1. servers/remote generate_pptx built into a temp workspace and uploaded only the
.pptx, so "export" silently acted like "strip" on the AWS stack. The notes file
now goes to pptx/<deckId>/<build>.notes.md (same build id as the .pptx),
the deck record gets notesS3Key (cleared on a keep/strip rebuild), the
superseded notes object is deleted like the old .pptx, and the result carries
notesS3Key plus a signed notesUrl.
2. A full build in keep/strip mode deletes a <stem>.notes.md left by an earlier
export build; partial builds never touch it.
3. Guide: PPTX decks only (HTML decks keep their <aside class="notes">).
Tests: test_mcp_generate (export upload + keep clears), test_notes_mode (stale cleanup).
---------
Co-authored-by: Hyunmin Kim <4966343+hmkim@users.noreply.github.com>
Copy file name to clipboardExpand all lines: sdpm/references/guides/slide-json-spec.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ Metadata only. Do NOT put slides here.
39
39
-`"defaultBackground"`: Optional. Solid ground for every slide that does not set its own `background` (e.g. `"#FFF6E5"`). `apply_style` fills it from the style's `--color-bg`; omit to keep the template background. Table auto-colors and icon theme (dark/light) follow it.
40
40
-`"title"`: Optional. Document title written to the PPTX properties (shown by PowerPoint and read by screen readers). Defaults to the first slide's title text.
41
41
-`"language"`: Optional. Document language as a BCP 47 tag (e.g. `"en-US"`, `"ja-JP"`), written to the PPTX properties.
42
+
-`"notesMode"`: Optional. What the build does with each slide's `notes`: `"keep"` (default) writes them as speaker notes; `"strip"` leaves them out of the .pptx; `"export"` leaves them out and writes them to `<output stem>.notes.md` next to the .pptx (`output.pptx` → `output.notes.md`, one `## pageNN — title` section per slide, styling removed). Use `strip` or `export` for a deck handed to the audience: imported slides often carry their presenter's internal notes. The slide files keep their `notes` either way, so composing is unchanged. A full build in `keep` or `strip` mode deletes a `<output stem>.notes.md` left by an earlier `export` build. PPTX decks only: an HTML deck keeps its `<aside class="notes">` whatever the value. Any other value stops the build.
42
43
- Line color, table color, and chart color are auto-resolved from the template's theme colors.
0 commit comments