Presentation Mode

Docboot includes a native, zero-dependency slide presentation mode. It reuses the exact same Markdown compiler, syntax highlighting, Mermaid diagram renderer, callouts, and theme tokens to turn any Markdown file into a presentation deck.

BASH
docboot present talk.md

Slide Separation #

1. Horizontal Rule (---) #

Insert --- on its own line between slide blocks:

MARKDOWN
# Docboot

Zero-config docs and presentations.

---

## Architecture

Markdown → Compiler → Static HTML

2. Explicit Slide Directive (:::slide) #

Use :::slide with optional layout and background attributes:

MARKDOWN
:::slide layout="center" background="./images/cover.jpg"
# Main Title
Welcome to the talk.
:::

3. Vertical Sub-Slides (-- or :::vslide) #

For deep-dives, detailed steps, or long sections, use -- on its own line (or :::vslide) to create vertical sub-slides under the same main topic:

MARKDOWN
# 1. Architecture Overview (Slide 1.1)

High-level system design.

--

## 1.1 Compiler Pipeline (Slide 1.2)

Deep dive into Markdown compilation.

--

## 1.2 Theme Pipeline (Slide 1.3)

Deep dive into CSS tokens and Tailwind v4.

---

# 2. Performance (Slide 2.1)

Next horizontal chapter.
  • ArrowRight / ArrowLeft: Navigate between top-level chapters (1.x $\leftrightarrow$ 2.x).
  • ArrowDown / ArrowUp: Navigate between vertical sub-slides (1.1 $\leftrightarrow$ 1.2 $\leftrightarrow$ 1.3).
  • Vertical Indicator Dots: A dynamic indicator appears on the right edge showing vertical depth (● ○ ○).
  • Smooth Auto-Scroll: For slides with long content, pressing ArrowDown first smoothly scrolls down within the slide, then advances to the next sub-slide!

4. Split Column Layout #

Create two-column slides using ::left and ::right:

MARKDOWN
:::slide layout="split"

## Core Features

::left
- Zero configuration
- Instant start
- Local search

::right
- Syntax highlighting
- Mermaid diagrams
- Presenter view
:::

Interactive Features #

1. Incremental Reveal Fragments (:::fragment) #

Reveal bullet points, paragraphs, or diagrams step-by-step on consecutive Space or keypresses:

MARKDOWN
## Why Docboot?

- Instant start
:::fragment
- Zero configuration
:::
:::fragment animation="scale"
- Built-in presentation mode
:::

2. Code Line Highlighting ({2,4-6}) #

Highlight important lines in code blocks while subtly dimming the rest:

MARKDOWN
```javascript {3-5}
import { SiteBuilder } from 'docboot';

// Highlighted focus area:
const builder = new SiteBuilder(config);
await builder.build();
```

3. Laser Pointer (L key) #

Press L to turn your cursor into a glowing red laser pointer with smooth trailing and click pulses.

4. Draw & Sketch Pen (D key) #

Press D to open the drawing canvas over your slides. Choose between Red, Blue, Green, and Yellow ink to annotate or circle important points live. Press C to clear ink.

5. Slide Overview Grid (O or G key) #

Press O to open a visual grid of all slides in the deck with live previews. Click any card to jump directly to that slide.


Speaker Notes (:::notes) #

Speaker notes are extracted and only visible in Presenter Mode (P key):

MARKDOWN
## Technical Architecture

Here is the visible slide content.

:::notes
- Emphasize the build-time parallelization.
- Mention zero third-party client dependencies.
:::

Multi-Window Presenter Sync (BroadcastChannel) #

Press P to open the Studio Presenter Console, or click Popout ↗ in the top bar:

  • Projector / Audience window shows clean full-screen slides.
  • Laptop window shows the Presenter Console (notes, timer, previous/next slide previews, and notes font scaler).
  • Both windows synchronize instantly with 0ms latency via the HTML5 BroadcastChannel API.

Keyboard Shortcuts #

KeyAction
Right Arrow / Space / PageDown / NNext slide / Reveal fragment
Left Arrow / PageUp / HPrevious slide / Hide fragment
Down Arrow / Up Arrow / J / KVertical sub-slide / Scroll
LToggle Laser Pointer
D / CToggle Drawing Pen / Clear Canvas
O / GSlide Overview Grid
Home / EndJump to first / last slide
FToggle Fullscreen
PToggle Presenter Console
TToggle Dark / Light Theme
?Keyboard Shortcuts Cheat-Sheet
EscClose Modals / Presenter / Fullscreen

Static Build & Deployment #

Export your presentation as a standalone static bundle:

BASH
docboot present build talk.md

Outputs a self-contained dist-presentation/index.html that can be deployed to GitHub Pages, Netlify, Vercel, or any static hosting service.


Printing & PDF Export #

Docboot includes dedicated @media print rules. Press Cmd + P (or Ctrl + P) in your browser:

  • Each slide renders on a clean 16:9 page.
  • Controls, progress bars, and presenter panes are automatically hidden.
  • Choose "Save as PDF" for zero-dependency slide decks.
3 min read · Updated