Skip to content

Public copy: a clean version of the deck to send out #9

Closed

Description

@victorbahl

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.

It's working on my fork, on top of #8: https://github.com/victorbahl/deckfile/tree/feat/public-copy

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.

Activity

  1. roaldnefs commented on Nov 14, 2026

    @roaldnefs
    Owner

    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.

  2. added
    enhancement
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions