Skip to content

Commit 0ef579d

Browse files
committed
website - tweaks to revealjs example
1 parent 5c1f1b8 commit 0ef579d

4 files changed

Lines changed: 29 additions & 44 deletions

File tree

docs/authoring/revealjs/basics.qmd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: RevealJS Basics
3+
---
4+
5+
6+
``` {.yaml preview="/examples/scrollable-and-smaller"}
7+
---
8+
format:
9+
revealjs:
10+
smaller: true
11+
scrollable: true
12+
---
13+
```

docs/presentations/revealjs/index.qmd

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ title: "Reveal.js presentations"
44

55
## Overview
66

7-
You write a reveal.js presentation the same way you write any Quarto
8-
document — as Markdown — and choose the slide format in the front matter:
7+
Like other documents, a reveal.js presentation in Quarto is a Markdown document. Add `format: revealjs` to the document's front matter to choose the slideshow format:
98

109
```yaml
1110
---
@@ -15,10 +14,7 @@ format: revealjs
1514

1615
From there, headings become slides and the document metadata becomes a
1716
title slide. The rest of this page walks through the slide-authoring
18-
features Quarto 2 supports today. Each feature is paired with a small,
19-
self-contained example you can render and adapt; the example projects live
20-
under
21-
[`examples/presentations/`](https://github.com/quarto-dev/q2/tree/main/examples/presentations).
17+
features Quarto 2 supports today.
2218

2319
::: {.callout-note}
2420
Quarto 2's reveal.js support is still growing. This page documents only
@@ -29,10 +25,9 @@ available.
2925

3026
## Creating slides
3127

32-
Slide boundaries follow heading levels. A level-2 heading (`##`) starts a
33-
slide; a level-1 heading (`#`) starts a *section*, gathering the slides
34-
beneath it into a vertical stack; and a horizontal rule (`---`) starts a
35-
new slide where you have no heading to give it.
28+
A level-2 heading (`##`) starts a new slide, and the heading content becomes the slide title. A level-1 heading (`#`) starts a *section*, gathering the slides
29+
beneath it into a vertical stack. A horizontal rule (`---`) starts a
30+
new slide with no title.
3631

3732
:::: {#demo-creating-slides .embed-example-iframe file="/examples/presentations/01-creating-slides/slides.html"}
3833
```markdown
@@ -84,9 +79,7 @@ untitled slide. [View source](https://github.com/quarto-dev/q2/tree/main/example
8479

8580
### The title slide
8681

87-
When the front matter carries a `title` — and, optionally, an `author` or
88-
`date` — Quarto opens the deck with a generated title slide. Omit those
89-
fields and the deck starts directly on your first content slide.
82+
When the front matter carries a `title` metadata entry (and optionally, an `author` or `date` fields), Quarto will produce a title slide.
9083

9184
### Slide level
9285

examples/presentations/02-sections/slides.qmd

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
---
2-
title: "Sections & Breaks"
3-
author: "Quarto"
42
format: revealjs
53
---
64

75
# Part One
86

97
## First topic
108

11-
- Point A
12-
- Point B
13-
14-
## Second topic
15-
16-
A level-1 heading (`# Part One`) starts a new section. Its level-2 slides
17-
become vertical children beneath it.
9+
Content.
1810

1911
# Part Two
2012

2113
## Another topic
2214

23-
Content for the second section.
15+
Content.
2416

2517
---
2618

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,19 @@
11
---
2-
title: "Fragments"
32
format: revealjs
43
---
54

6-
## Reveal on click
5+
# Part One
76

8-
Wrap content in a `.fragment` div to reveal it one step at a time.
7+
## First topic
98

10-
::: {.fragment}
11-
Appears on the first click.
12-
:::
9+
Content.
1310

14-
::: {.fragment .fade-up}
15-
Then this one fades up.
16-
:::
11+
# Part Two
1712

18-
::: {.fragment .highlight-red}
19-
Then this one turns red.
20-
:::
13+
## Another topic
2114

22-
## Controlling the order
15+
Content.
2316

24-
`fragment-index` sets the order explicitly, regardless of source position.
25-
26-
::: {.fragment fragment-index="2"}
27-
Shown second.
28-
:::
17+
---
2918

30-
::: {.fragment fragment-index="1"}
31-
Shown first.
32-
:::
19+
An untitled slide, created with a horizontal rule.

0 commit comments

Comments
 (0)