# Slide deck > **Experimental.** A working reference exists with two illustrative examples built from invented content (an English lesson and a Brazilian Portuguese project update). It has no qualification and no human review, so it is not Supported. ## Purpose and inputs A slide deck turns a topic, a document or a rough outline into a presentation: a web version that works on any screen, and a PDF you can check page by page. You supply the audience, the purpose, the time limit if known, and the material. If the length is not given and the material has enough context, aim for a short talk of eight to ten slides. Build the story before the layout: an opening that names the question, a few ideas that each carry one takeaway, and a close worth remembering. Pitches, lessons and updates are shaped differently; the two examples show it. Every number and claim must come from the material you were given. Never invent a statistic, a quotation or a source. Everything public lives in one `content.json`: - `title`, `lang` (`en` or `pt-BR`) and optional `illustrative: true`, which labels the deck and each slide as an invented example. `schema: 1` is optional. - `slides`: one to thirty, in the order you want them shown. Each has a lowercase `id` (letters, digits, hyphens; it becomes the `#id` link and never starts with `deck-`), a `headline` that states the takeaway, a `layout` and a `body`. Optional: `assets` and `source`. - Layouts, a small fixed set rather than a design language: `title`, `statement`, `image`, `comparison`, `chart`, `closing`. Their `body` shapes are fixed: `title`, `statement`, `image` and `closing` take a string (a blank line starts a new paragraph). `comparison` takes `{left, right}`, each `{label, text, points?}`. `chart` takes `{summary, chart}`. `image` needs exactly one entry in `assets`: `{src, alt, credit, caption?}`, a relative path inside your folder, alt text and a visible rights/provenance credit. - Charts are drawn from the numbers you give and nothing else. `dots`: one or two series of whole numbers on an `axis` `{label, unit, min, max, step}`, with `marks` (`mean`, `median`) the build computes exactly and `n` shown for every series; `bars`: up to three rows `{label, value, total, unit}` shown as "value of total"; `timeline`: two to five items `{label, when, state: done|next|later, detail?}`. Every chart needs a `title` and a `note` that says where the data comes from and whether it is invented. - `source`: `{label, url?}`, shown as a caption; a link is kept only if it is `http` or `https` without a username or password. - Text is plain text. HTML, CSS, scripts and remote embeds are not accepted, and a `notes` field is refused by name. Length limits are checked, not clipped. The build refuses text that would not fit its slide, for example headlines over 80 characters. The browser tests build a deck with every field at its limit and measure that nothing overflows at 1024, 1280, 1440 and 1920 pixels wide. ## Presenter notes stay separate Write your notes in `private/notes.md` in your authoring folder, next to `content.json`, with one `## ` section per slide and the time you plan to spend on it. `buildDeck` only checks that the file is a regular file and returns its path. It never reads it, never copies it, and never publishes the folder it sits in. Do not put notes inside `reference/` or `examples/`: every file there is published by the gallery. The repository's `private/lesson.md`, `private/project-update.md` and `private/notes.md` are illustrative samples, not secret from someone reading the repository; the guarantee is for the built folder, the PDF and your own notes. ## Build, view, export ```sh mkdir my-deck && cp -r recipes/slide-deck/examples/lesson/content.json recipes/slide-deck/examples/lesson/img my-deck/ mkdir my-deck/private && cp recipes/slide-deck/private/lesson.md my-deck/private/notes.md # your own notes, here node recipes/slide-deck/reference/build.mjs my-deck out # writes out/public/ ``` `out/public/` is plain HTML, CSS and one small script, with only the images a slide uses: open it from any web server, no Node needed. It has presentation mode (arrow keys, Home, End, swipe, an outline, `#slide-id` links, a visible counter) on screens wide enough for a legible 16:9 stage, and reading mode, every slide as ordinary content, everywhere else and with scripting off. It honours reduced motion and starts nothing by itself. It uses system fonts, so exact letterforms differ between devices. To get a PDF (an authoring step on your machine; the published deck needs none of it): ```sh npm --prefix testing/recipes/export ci && npm --prefix testing/recipes/export run install-browser # once; also needs poppler (pdfinfo, pdftotext, pdftoppm) node recipes/slide-deck/reference/export.mjs --public out/public --out ~/Documents/my-deck.pdf \ --helper "$PWD/testing/recipes/export/pdf.mjs" --source my-deck ``` The helper is always named explicitly (`--helper`, `helperPath`, or `RAPADURA_PDF_HELPER`); nothing is resolved by accident. The export serves only `out/public/` on loopback, refuses any request that leaves it, checks that every image decoded, that no slide overflows its 16:9 page, that the PDF has one page per slide at 16:9 and that each slide's headline is on its own page, then moves the file into place. It never replaces an existing file unless you pass `--overwrite`, never writes inside the public folder or your source folder, and leaves no partial file when it fails. Then look at every page yourself (`pdftoppm -png -r 80 my-deck.pdf page`): a passing check is not a design review. ## What to edit and rebuild - Words, order, charts and images: `content.json` and the files it names. Rebuild into a fresh folder. - Look: `reference/deck.css` (screen) and `reference/print.css` (paper). Page frame and labels: `reference/index.html`. Viewer behaviour: `reference/deck.mjs`. Every build copies these, so your edits ship on the next build. - Example previews: `node recipes/slide-deck/reference/previews.mjs` rewrites them; `--check` fails when one is stale. ## Completion checks - Every slide has one takeaway headline; the story has an opening, a few supported ideas and a close. - Every figure, chart and caption matches the material; invented data says so on the slide. - You looked at every slide in presentation mode, in reading mode on a phone width, and on every page of the PDF: nothing clipped, text readable, images present. - Keyboard, touch and `#slide-id` links work; presenter notes are absent from the built folder and the PDF. ## Limits and optional additions A web deck, a PDF and an editable PowerPoint are different outputs; PowerPoint is not part of this reference. A deck you publish is public: private serving is unavailable, and an unlisted link is not access control. Offline presentation is not promised until assets and navigation are tested without network access. The PDF is checked on the author's device, not by the server. Optional addition: Feedback survey, to ask the audience what they took away.