1 / 10

Welcome to website slides

A burgundy-native deck authored in MDX. Read is the canonical long-form view, Present adds navigation when requested, and Print is a static browser-print handout.

ViewBest for
ReadLinks and careful reading
PresentA live talk
PrintBrowser Print or Save as PDF

2 / 10

One source, three views

The compiler, syntax highlighting, and diagrams stay on the server. Only Present opts into reveal.js behavior.

3 / 10

Markdown and MDX

Ordinary document structure

The website uses normal headings and links, while this small table remains readable in every view.

AuthorResult
MarkdownStructure and links
MDXDeliberate components
Illustration of one MDX document branching to Read, Present, and Print cards

4 / 10

CodeHike annotations

Filename, line numbers, marks, diffs, and folds remain useful static evidence in Read and Print.

slide-policy.ts
export function chooseView(requested: 'read' | 'present' | 'print') {
const serverRendered = true
return { serverRendered, runtime: 'always' }
return { serverRendered, runtime: requested === 'present' ? 'reveal.js' : 'none' }
// Internal implementation details stay expanded in static views.
}
ts

5 / 10

Multiple examples

export const views = ['read', 'present', 'print'] as const
ts
yarn add reveal.js
sh

Static views label every tab and package-manager command variant instead of relying on an active control.

6 / 10

Theme integration

primary.base
background.page
secondary.base

The slides family supplies burgundy surfaces and accents through the existing light, dark, and system theme selection controls. CodeHike syntax colors remain CSS-driven light/dark palettes.

7 / 10

Layouts and diagrams

Two columns

Use columns for complementary ideas, not dense text. The reading view stacks them when space is limited.

8 / 10

Progressive enhancement

First idea: every slide is visible in Read and Print.

Then: Present reveals selected fragments in speaking order.

No essential explanation is hidden behind a fragment: static visitors and printed handouts see both statements.

9 / 10

Interactive MDX

Presentation counter
0

The small counter accepts interaction only in Present. Its static label makes the state and purpose understandable without client-side demo code.

10 / 10

Presenting and sharing

Each slide keeps the anchor emitted by the MDX heading pipeline, so a Read URL with that fragment can identify a specific slide. Present includes speaker notes; Read and Print intentionally do not.

For a handout, open Print and use the browser's Print or Save as PDF command. This deck does not create or download a PDF.

Back to reading

Experiments