
<FormatHero
  title="Decks written in Markdown."
  format="deck"
  command="npx recit init slides.md"
  description="A line of three dashes starts a new slide. Layouts, a presenter console, and HTML or PDF export come with it."
  actions={[
    { label: "Start a deck", site: "docs", href: "/documentation/getting-started/quickstart" },
    { label: "Open the gallery", href: "/demos/overview" },
  ]}
>
  <StoryEmbed slug="presentation/hero" showOpenLink={false} />
</FormatHero>

The deck above is a real one: click it, then press → to advance, :kbd[S] for the presenter console
or :kbd[T] to switch theme.

<PageSection tone="surface" label="Example decks">

## Example decks

Every card below is a **real deck** compiled from the
[`examples/`](https://github.com/vguerand/recit/tree/main/examples) folder of the repository. Click
one to read its page: features, source code and an interactive preview.

<StoryGallery
  decks={["presentation/starter", "presentation/showcase", "presentation/data"]}
  links={{
    "presentation/starter": "/presentation/demos/starter",
    "presentation/showcase": "/presentation/demos/showcase",
    "presentation/data": "/presentation/demos/data",
  }}
  slides={{ "presentation/starter": 2, "presentation/showcase": 5, "presentation/data": 2 }}
/>

[All eight example decks](/presentation/demos/overview): a tech talk, a pitch, a course, MDX
components and a deck inside a site.

</PageSection>

<PageSection tone="plain" label="The deck format">

## The deck format

<FeatureGrid cols={4}>
  <FeatureCard title="Presenter console" description="Current and next slide, speaker notes, timer and estimated duration, on a second screen." site="docs" href="/formats/deck/presenter-console" />
  <FeatureCard title="Smartphone remote" description="Scan a QR code and drive the deck from your phone on the local network." site="docs" href="/formats/deck/smartphone-remote" />
  <FeatureCard title="Steps" description="Reveal lists, cards and answers one by one with :::step blocks." href="/presentation/demos/course" />
  <FeatureCard title="Speaker notes" description="A :::notes block per slide, shown in the console and optionally in the PDF." href="/presentation/demos/tech-talk" />
  <FeatureCard title="PDF and HTML export" description="One PDF page per slide, or a single self-contained HTML file to share anywhere." href="/presentation/templates" />
  <FeatureCard title="KaTeX math" description="Inline and display formulas written in plain LaTeX, rendered at build time." href="/presentation/demos/course" />
  <FeatureCard title="Mermaid diagrams" description="Flowcharts and sequence diagrams from a fenced code block." href="/presentation/demos/site" />
  <FeatureCard title="MDX components" description="Grid, Card, Callout, Step and your own stateful React components." href="/presentation/demos/mdx" />
</FeatureGrid>

</PageSection>

<PageSection tone="tint" label="Start a deck">

## Start a deck

<TutorialSteps>
  <TutorialStep title="Create a deck" duration="10 s">
    `recit init` writes a starter `slides.md` (add `--config` for a `recit.config.ts`).

    ```bash
    npx recit init slides.md
    ```

  </TutorialStep>
  <TutorialStep title="Write with live reload" duration="1 min">
    `recit dev` serves the deck with hot reload. Add `--remote` to drive it from your phone.

    ```bash
    npx recit dev slides.md
    ```

  </TutorialStep>
  <TutorialStep title="Build or export" duration="10 s">
    `recit build` writes a static site to `./dist`; `recit export` writes a PDF, or one portable
    HTML file with `--html`.

    ```bash
    npx recit build slides.md
    npx recit export slides.md --html
    ```

  </TutorialStep>
</TutorialSteps>

Prefer a richer starting point? Copy one of the [templates](/presentation/templates). The full
syntax is documented on [docs.recit.dev](https://docs.recit.dev).

</PageSection>
