Skip to main content

Task recipe · ARC 2.0.0-beta.28

Recipe: slides in an article

Turn a Markdown article into slides by chaining MD structure units and the deck widget unit — no re-documented APIs.

Task: one content object (article or doc) that presents as slides in the browser when the slides path is available. This page only links unit contracts.

Outcome

  • Front matter enables the slides path
  • Top-level HR / thematic breaks become slide boundaries
  • Browser shows slide chrome when the serving runtime includes the slides player; otherwise you get the honest server transcript fallback described on the unit pages
  1. Author a normal Markdown object under content/articles/ or content/docs/ — object rules: Content objects, metadata, and locales.
  2. Enable slides and understand HR boundaries:
  3. Thin hub (navigation only): Write and embed Markdown slides.
  4. Live demo page when the runtime mounts the player: Slides demo.

Canonical units (do not restate props here)

RoleUnit pageLayer
Enable slides pathslides-front-matterMD structure
Slide boundariesthematic-breakMD structure
AUP deck / slides player (Web-only widget)deckAUP widget — not a layout component
Optional rich media inside a slidemedia · image (inline)primitive / MD

Layer discipline

  • MD structures (slides: true, HR) live under /docs/web-device/markdown/….
  • deck is an AUP widget, not a Web Device theme component and not a cross-device primitive. Contract: deck widget.
  • Do not treat layout components such as product-showcase as slide APIs.

Fallback honesty

Without slides: true → ordinary article. Without the slides widget in the runtime → server transcript only. Those statements are owned by the unit pages above; this recipe does not invent a third fallback story.