Skip to content

Commit 0d85eaa

Browse files
authored
Merge pull request #1387 from quarto-dev/revealjs/scroll-view
2 parents e030f95 + 312d07c commit 0d85eaa

File tree

6 files changed

+223
-99
lines changed

6 files changed

+223
-99
lines changed

_freeze/docs/presentations/revealjs/demo/index/execute-results/html.json

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

_quarto-prerelease.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
prerelease-title: Pre-release
22
prerelease-lower: pre-release
3-
prerelease-mode: ""
3+
prerelease-mode: ""
4+
prerelease-subdomain: prerelease.

_quarto-rc.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
prerelease-title: Release Candidate
22
prerelease-lower: release candidate
3-
prerelease-mode: Release Candidate
3+
prerelease-mode: Release Candidate
4+
prerelease-subdomain: ''

docs/presentations/revealjs/advanced.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ If your content benefits from vertical orientation (e.g. you have optional drill
573573

574574
## Touch Navigation
575575

576-
You can swipe to navigate through a presentation on any touch-enabled device. Horizontal swipes change between horizontal slides, vertical swipes change between vertical slides.
576+
You can swipe to navigate through a presentation on any touch-enabled device.
577577

578578
If you wish to disable this you can set the `touch` option to `false`:
579579

docs/presentations/revealjs/demo/index.qmd

Lines changed: 50 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ format:
99
preview-links: auto
1010
logo: images/quarto.png
1111
css: styles.css
12-
footer: <https://quarto.org>
12+
footer: '[https://{{< meta prerelease-subdomain >}}quarto.org](https://{{< meta prerelease-subdomain >}}quarto.org)'
1313
resources:
1414
- demo.pdf
1515
---
@@ -22,7 +22,7 @@ This presentation will show you examples of what you can do with Quarto and [Rev
2222
- Including computations in slide output
2323
- Image, video, and iframe backgrounds
2424
- Fancy transitions and animations
25-
- Printing to PDF
25+
- Activating scroll view
2626

2727
...and much more
2828

@@ -43,7 +43,7 @@ function(input, output) {
4343
```
4444

4545
::: footer
46-
Learn more: [Syntax Highlighting](https://quarto.org/docs/output-formats/html-code.html#highlighting)
46+
Learn more: [Syntax Highlighting](https://{{< meta prerelease-subdomain >}}quarto.org/docs/output-formats/html-code.html#highlighting)
4747
:::
4848

4949
## Code Animations {auto-animate="true"}
@@ -67,7 +67,7 @@ function(input, output) {
6767
```
6868

6969
::: footer
70-
Learn more: [Code Animations](https://quarto.org/docs/presentations/revealjs/advanced.html#code-animations)
70+
Learn more: [Code Animations](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/advanced.html#code-animations)
7171
:::
7272

7373
## Line Highlighting
@@ -89,7 +89,7 @@ plt.show()
8989
```
9090

9191
::: footer
92-
Learn more: [Line Highlighting](https://quarto.org/docs/presentations/revealjs/#line-highlighting)
92+
Learn more: [Line Highlighting](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#line-highlighting)
9393
:::
9494

9595
## Executable Code
@@ -105,7 +105,7 @@ ggplot(mtcars, aes(hp, mpg, color = am)) +
105105
```
106106

107107
::: footer
108-
Learn more: [Executable Code](https://quarto.org/docs/presentations/revealjs/#executable-code)
108+
Learn more: [Executable Code](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#executable-code)
109109
:::
110110

111111
## LaTeX Equations
@@ -148,7 +148,7 @@ a_{21}& =b_{21}&
148148
:::
149149

150150
::: footer
151-
Learn more: [LaTeX Equations](https://quarto.org/docs/authoring/markdown-basics.html#equations)
151+
Learn more: [LaTeX Equations](https://{{< meta prerelease-subdomain >}}quarto.org/docs/authoring/markdown-basics.html#equations)
152152
:::
153153

154154
## Column Layout {.smaller}
@@ -173,7 +173,7 @@ knitr::kable(head(mtcars)[,c("mpg", "cyl", "disp", "hp", "wt")])
173173
:::
174174

175175
::: footer
176-
Learn more: [Multiple Columns](https://quarto.org/docs/presentations/revealjs/#multiple-columns)
176+
Learn more: [Multiple Columns](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#multiple-columns)
177177
:::
178178

179179
## Incremental Lists
@@ -191,7 +191,7 @@ Lists can optionally be displayed incrementally:
191191
<br/> Insert pauses to make other types of content display incrementally.
192192

193193
::: footer
194-
Learn more: [Incremental Lists](https://quarto.org/docs/presentations/revealjs/#incremental-lists)
194+
Learn more: [Incremental Lists](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#incremental-lists)
195195
:::
196196

197197
## Fragments
@@ -227,7 +227,7 @@ Highlight red
227227
:::
228228

229229
::: footer
230-
Learn more: [Fragments](https://quarto.org/docs/presentations/revealjs/advanced.html#fragments)
230+
Learn more: [Fragments](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/advanced.html#fragments)
231231
:::
232232

233233
## Slide Backgrounds {background="#43464B"}
@@ -237,7 +237,7 @@ Set the `background` attribute on a slide to change the background color (all CS
237237
Different background transitions are available via the `background-transition` option.
238238

239239
::: footer
240-
Learn more: [Slide Backgrounds](https://quarto.org/docs/presentations/revealjs/#color-backgrounds)
240+
Learn more: [Slide Backgrounds](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#color-backgrounds)
241241
:::
242242

243243
## Media Backgrounds {background="#43464B" background-image="images/milky-way.jpeg"}
@@ -251,7 +251,7 @@ You can also use the following as a slide background:
251251
- An iframe: `background-iframe`
252252

253253
::: footer
254-
Learn more: [Media Backgrounds](https://quarto.org/docs/presentations/revealjs/#image-backgrounds)
254+
Learn more: [Media Backgrounds](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#image-backgrounds)
255255
:::
256256

257257
## Absolute Position
@@ -265,7 +265,7 @@ Position images or other elements at precise locations
265265
![](mini/images/kitten-300-200.jpeg){.absolute .fragment bottom="110" right="130" width="300"}
266266

267267
::: footer
268-
Learn more: [Absolute Position](https://quarto.org/docs/presentations/revealjs/advanced.html#absolute-position)
268+
Learn more: [Absolute Position](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/advanced.html#absolute-position)
269269
:::
270270

271271
## Auto-Animate {auto-animate="true" auto-animate-easing="ease-in-out"}
@@ -284,7 +284,7 @@ Automatically animate matching elements across slides with Auto-Animate.
284284
:::
285285

286286
::: footer
287-
Learn more: [Auto-Animate](https://quarto.org/docs/presentations/revealjs/advanced.html#auto-animate)
287+
Learn more: [Auto-Animate](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/advanced.html#auto-animate)
288288
:::
289289

290290
## Auto-Animate {auto-animate="true" auto-animate-easing="ease-in-out"}
@@ -303,7 +303,7 @@ Automatically animate matching elements across slides with Auto-Animate.
303303
:::
304304

305305
::: footer
306-
Learn more: [Auto-Animate](https://quarto.org/docs/presentations/revealjs/advanced.html#auto-animate)
306+
Learn more: [Auto-Animate](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/advanced.html#auto-animate)
307307
:::
308308

309309
## Slide Transitions {.smaller}
@@ -320,7 +320,7 @@ The next few slides will transition using the `slide` transition
320320
| `zoom` | Scale the incoming slide so it grows in from the center of the screen. |
321321

322322
::: footer
323-
Learn more: [Slide Transitions](https://quarto.org/docs/presentations/revealjs/advanced.html#slide-transitions)
323+
Learn more: [Slide Transitions](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/advanced.html#slide-transitions)
324324
:::
325325

326326
## Tabsets {.smaller .scrollable transition="slide"}
@@ -343,7 +343,7 @@ knitr::kable(mtcars)
343343
:::
344344

345345
::: footer
346-
Learn more: [Tabsets](https://quarto.org/docs/presentations/revealjs/#tabsets)
346+
Learn more: [Tabsets](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#tabsets)
347347
:::
348348

349349
## Interactive Slides {.smaller transition="slide"}
@@ -360,7 +360,7 @@ leaflet() %>%
360360
```
361361

362362
::: footer
363-
Learn more: [Jupyter widgets](https://quarto.org/docs/interactive/widgets/jupyter.html), [htmlwidgets](https://quarto.org/docs/interactive/widgets/htmlwidgets.html)
363+
Learn more: [Jupyter widgets](https://{{< meta prerelease-subdomain >}}quarto.org/docs/interactive/widgets/jupyter.html), [htmlwidgets](https://{{< meta prerelease-subdomain >}}quarto.org/docs/interactive/widgets/htmlwidgets.html)
364364
:::
365365

366366
## Interactive Slides {.smaller transition="slide"}
@@ -388,7 +388,7 @@ plotActors(actors, talentWeight, looksWeight, minimum)
388388
```
389389

390390
::: footer
391-
Learn more: [Observable](https://quarto.org/docs/interactive/ojs/), [Shiny](https://quarto.org/docs/interactive/shiny/), [Component Layout](https://quarto.org/docs/interactive/layout.html)
391+
Learn more: [Observable](https://{{< meta prerelease-subdomain >}}quarto.org/docs/interactive/ojs/), [Shiny](https://{{< meta prerelease-subdomain >}}quarto.org/docs/interactive/shiny/), [Component Layout](https://{{< meta prerelease-subdomain >}}quarto.org/docs/interactive/layout.html)
392392
:::
393393

394394
## Preview Links
@@ -402,12 +402,12 @@ Use the `preview-links` option to open links in an iframe on top of your slides.
402402
:::
403403

404404
::: footer
405-
Learn more: [Preview Links](https://quarto.org/docs/presentations/revealjs/presenting.html#preview-links)
405+
Learn more: [Preview Links](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#preview-links)
406406
:::
407407

408408
## Themes
409409

410-
10 Built-in Themes (or [create your own](https://quarto.org/docs/presentations/revealjs/themes.html#creating-themes))
410+
10 Built-in Themes (or [create your own](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/themes.html#creating-themes))
411411

412412
::: {layout-ncol="2"}
413413
![](images/moon.png)
@@ -416,7 +416,7 @@ Learn more: [Preview Links](https://quarto.org/docs/presentations/revealjs/prese
416416
:::
417417

418418
::: footer
419-
Learn more: [Themes](https://quarto.org/docs/presentations/revealjs/themes.html)
419+
Learn more: [Themes](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/themes.html)
420420
:::
421421

422422
## Easy Navigation
@@ -431,9 +431,9 @@ Quickly jump to other parts of your presentation
431431
Toggle the slide menu with the menu button (bottom left of slide) to go to other slides and access presentation tools.
432432
:::
433433

434-
You can also press `m` to toggle the menu open and closed.
434+
You can also press {{< kbd m >}} to toggle the menu open and closed.
435435

436-
You can also press `g` to toggle 'Jump To Slide' modal box to quickly go to one of your slide using its number or id.
436+
You can also press {{< kbd g >}} to toggle 'Jump To Slide' modal box to quickly go to one of your slide using its number or id.
437437

438438
::: footer
439439
Learn more: [Navigation](/docs/presentations/revealjs/presenting.qmd#navigation-menu) / [Jump To Slide](/docs/presentations/revealjs/presenting.qmd#jump-to-slide)
@@ -463,32 +463,44 @@ Use the chalkboard button at the bottom left of the slide to toggle the chalkboa
463463
Use the notes canvas button at the bottom left of the slide to toggle drawing on top of the current slide.
464464
:::
465465

466-
You can also press `b` to toggle the chalkboard or `c` to toggle the notes canvas.
466+
You can also press {{< kbd b >}} to toggle the chalkboard or {{< kbd c >}} to toggle the notes canvas.
467467

468468
::: footer
469-
Learn more: [Chalkboard](https://quarto.org/docs/presentations/revealjs/presenting.html#chalkboard)
469+
Learn more: [Chalkboard](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#chalkboard)
470470
:::
471471

472472
## Point of View
473473

474-
Press `o` to toggle overview mode:
474+
press {{< kbd o >}} to toggle overview mode:
475475

476476
![](images/overview-mode.png){.border}
477477

478-
Hold down the `Alt` key (or `Ctrl` in Linux) and click on any element to zoom towards it---try it now on this slide.
478+
Hold down the {{< kbd Alt linux=Ctrl >}} and click on any element to zoom towards it---try it now on this slide.
479479

480480
::: footer
481-
Learn more: [Overview Mode](https://quarto.org/docs/presentations/revealjs/presenting.html#overview-mode), [Slide Zoom](https://quarto.org/docs/presentations/revealjs/presenting.html#slide-zoom)
481+
Learn more: [Overview Mode](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#overview-mode), [Slide Zoom](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#slide-zoom)
482482
:::
483483

484484
## Speaker View
485485

486-
Press `s` (or use the presentation menu) to open speaker view
486+
press {{< kbd s >}} (or use the tools in presentation menu ![](../images/navigation-menu-icon.png){style="padding-bottom: 1px; margin: 0" width="0.5em" height="0.5em"}) to open speaker view
487487

488488
![](images/speaker-view.png){fig-align="center" style="border: 3px solid #dee2e6;" width="780"}
489489

490490
::: footer
491-
Learn more: [Speaker View](https://quarto.org/docs/presentations/revealjs/presenting.html#speaker-view)
491+
Learn more: [Speaker View](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#speaker-view)
492+
:::
493+
494+
## Scroll View {#scroll-view}
495+
496+
Press {{< kbd r >}} (or use the tools in presentation menu ![](../images/navigation-menu-icon.png){style="padding-bottom: 1px; margin: 0" width="0.5em" height="0.5em"}) to open scroll view
497+
498+
Try it now on this slide --- You'll see a scroll bar on the right and you can scroll down the presentation using your mouse.
499+
500+
Scroll view behavior can be configured using `scroll-view` configuration.
501+
502+
::: footer
503+
Learn more: [Scroll View](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#scroll-view)
492504
:::
493505

494506
## Authoring Tools {.smaller}
@@ -506,7 +518,7 @@ Live side-by-side preview for any notebook or text editor including Jupyter and
506518
:::
507519

508520
::: footer
509-
Learn more: [Jupyter](https://quarto.org/docs/tools/jupyter-lab.html), [VS Code](https://quarto.org/docs/tools/vscode.html), [Text Editors](https://quarto.org/docs/tools/text-editors.html)
521+
Learn more: [Jupyter](https://{{< meta prerelease-subdomain >}}quarto.org/docs/tools/jupyter-lab.html), [VS Code](https://{{< meta prerelease-subdomain >}}quarto.org/docs/tools/vscode.html), [Text Editors](https://{{< meta prerelease-subdomain >}}quarto.org/docs/tools/text-editors.html)
510522
:::
511523

512524
## Authoring Tools {.smaller}
@@ -516,16 +528,16 @@ RStudio includes an integrated presentation preview pane
516528
![](images/rstudio.png){.border width="900"}
517529

518530
::: footer
519-
Learn more: [RStudio](https://quarto.org/docs/tools/rstudio.html)
531+
Learn more: [RStudio](https://{{< meta prerelease-subdomain >}}quarto.org/docs/tools/rstudio.html)
520532
:::
521533

522534
## And More...
523535

524-
- [Touch](https://quarto.org/docs/presentations/revealjs/advanced.html#touch-navigation) optimized (presentations look great on mobile, swipe to navigate slides)
525-
- [Footer & Logo](https://quarto.org/docs/presentations/revealjs/#footer-logo) (optionally specify custom footer per-slide or hide global footer)
526-
- [Auto-Slide](https://quarto.org/docs/presentations/revealjs/presenting.html#auto-slide) (step through slides automatically, without any user input)
527-
- [Multiplex](https://quarto.org/docs/presentations/revealjs/presenting.html#multiplex) (allows your audience to follow the slides of the presentation you are controlling on their own phone, tablet or laptop).
536+
- [Touch](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/advanced.html#touch-navigation) optimized (presentations look great on mobile, swipe to navigate slides)
537+
- [Footer & Logo](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/#footer-logo) (optionally specify custom footer per-slide or hide global footer)
538+
- [Auto-Slide](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#auto-slide) (step through slides automatically, without any user input)
539+
- [Multiplex](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/presenting.html#multiplex) (allows your audience to follow the slides of the presentation you are controlling on their own phone, tablet or laptop).
528540

529541
::: footer
530-
Learn more: [Quarto Presentations](https://quarto.org/docs/presentations/revealjs/)
542+
Learn more: [Quarto Presentations](https://{{< meta prerelease-subdomain >}}quarto.org/docs/presentations/revealjs/)
531543
:::

0 commit comments

Comments
 (0)