Deck files: scenes listed as slides #59

Open
opened 2026-11-03 14:05:13 +00:00 by Weissstreifen · 0 comments

Part of #58. The deck file: a text file next to the scenes that lists them as slides.

# scenes/quarterly.deck
title = Quarterly numbers        # shown in the window title and on the website
transition = fade 0.4            # the default between slides: none, fade, slide, crossfade, blocks, iris, ... with seconds
pause = 1.5                      # how long a stop waits in a video export
theme.series1 = #2f6fde          # theme keys for every slide (a scene's own theme.* keys still win)

slide title.txt
slide revenue.txt  transition=slide
slide regions.txt  stops=2.5,6   # extra stops inside the slide
slide revenue.txt  from=4        # a scene can be in a deck more than once
  • Paths are relative to the deck. Each scene keeps its own data next to it, so a scene stays playable on its own
    (answers the first question of #58).
  • dub run -- present quarterly or dub run -- quarterly.deck opens it; a .deck argument works wherever a scene does.
  • Problems of the deck (a missing scene, a bad option) show like the problems of a scene, with their line.
  • source/deck.d: Deck, Slide, loadDeck, parseDeck, unit tests.
Part of #58. The deck file: a text file next to the scenes that lists them as slides. ``` # scenes/quarterly.deck title = Quarterly numbers # shown in the window title and on the website transition = fade 0.4 # the default between slides: none, fade, slide, crossfade, blocks, iris, ... with seconds pause = 1.5 # how long a stop waits in a video export theme.series1 = #2f6fde # theme keys for every slide (a scene's own theme.* keys still win) slide title.txt slide revenue.txt transition=slide slide regions.txt stops=2.5,6 # extra stops inside the slide slide revenue.txt from=4 # a scene can be in a deck more than once ``` - Paths are relative to the deck. Each scene keeps its own data next to it, so a scene stays playable on its own (answers the first question of #58). - `dub run -- present quarterly` or `dub run -- quarterly.deck` opens it; a `.deck` argument works wherever a scene does. - Problems of the deck (a missing scene, a bad option) show like the problems of a scene, with their line. - `source/deck.d`: `Deck`, `Slide`, `loadDeck`, `parseDeck`, unit tests.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/daviz#59
No description provided.