Skip to main content

Sample contract · MD structure · ARC 2.0.0-beta.28

`slides: true` front matter

Mark a content record as slides, split on HR boundaries, and link the live slides demo honestly.

Web Device Markdown structure — not an AUP primitive; not a theme/site layout component.

Sample contract

FieldValue
PurposeYAML flag that turns top-level HR breaks into slide boundaries and mounts the slides player path
BoundariesWithout flag → ordinary article; without widget → server transcript only; not a free-form canvas
Author entryslides: true (+ often layout: slides) + HR boundaries
SurfaceWeb Device slides / document embed player
Public statusreleased
Fallback / failureNo flag → ordinary prose separators; no widget → transcript only
VerificationRoutes below · demo page · arc --version = 2.0.0-beta.28

Sample

Author front matter on a content record:

markdown
---
title: A short technical explanation
slides: true
layout: slides
---

## Start with one idea

The first slide is an ordinary Markdown body.

---

## Continue on a new slide

- A list
- a table

This documentation page does not flip itself into a deck (the page is a reference, not the slides record). Live player (when the serving runtime includes the slides widget): Slides demo.

A deck may add the sibling key slidesLayout (side · side-reverse · stacked · stacked-reverse) to pick how the reading form arranges each slide card and its notes; the default is side. On a serving runtime that includes the segment reading form, an unknown value fails the build. The full layout contract, including the narrow-screen fallback and divider pages, lives in the markdown-slides guide.

Pair structure: thematic-break / HR.

Failure and limits

SituationExpected result
Missing slides: trueOrdinary article; HR is a separator only
Slides flag without widget mountServer-side transcript / incomplete player chrome
slidesLayout with an unknown valueBuild rejects the deck, listing the valid values
Expecting free canvas editingOut of contract

Verification evidence

ItemValue
Baseline2026-08-09 · arc --version → 2.0.0-beta.28
Capability rowdocs/aup/capability-matrix.md §6 · slides: true front matter · widget deck
Implementationslides.ts · SLIDES_FRONT_MATTER_FIELD · widgets/slides · renderer/primitives/deck.ts
Public routes/en/docs/web-device/markdown/slides-front-matter/ · /zh/docs/web-device/markdown/slides-front-matter/ · demo /en/docs/web-device/slides-demo/
Local runarc service start --blocklet blocklets/arcblock --port 4900 · open reference + demo
AcceptSource shows flag+HR contract; demo (if widget present) plays slides; no canvas claim