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
Public copy: a clean version of the deck to send out #9
Hey Roald, it's me again 🙂 I had a second idea after #8.
When I send a deck to a client after a talk, I don't want them to get my speaker notes, the slides I skipped or the edit view. So I added a "Public copy" button next to Save. It tells you what it's going to leave out, then downloads name-public.html: same deck, minus the notes, the skipped slides, the layouts and the HTML comments between slides. The copy can't be edited (no E, no pencil), but it still presents and prints. Your own file isn't touched.
A nice bonus: the copy also drops the edit view's code from the engine, so the example deck goes from 137 kB to 63 kB. It's about ten lines: two marker comments around that part of deck.js, and the copy cuts what's between them. A test opens a public copy and checks that it still navigates, presents and throws no errors, so it would catch anything outside the markers that starts relying on what's inside.
If you'd rather keep it simpler, the copy could skip the trimming and just carry the full engine. And if you'd like something more structured, the engine could be split into two blocks, viewer and editor, but that's your call since it's a bigger change to your code.
What do you think? Happy to open a PR once #8 is sorted.
I've been thinking about creating a "light" (engine-less) version of the deck myself, for the same reason. But this might actually be the better solution. The copy still presents and prints, and it comes from the same file with one click.
#8 is merged and out in 0.4.0, so feel free to open a PR.
Activity
roaldnefs commentedon Nov 14, 2026
Hey Victor, I like this idea a lot.
I've been thinking about creating a "light" (engine-less) version of the deck myself, for the same reason. But this might actually be the better solution. The copy still presents and prints, and it comes from the same file with one click.
#8 is merged and out in 0.4.0, so feel free to open a PR.