owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.36k stars 230 forks source link

Slideshow mode #1149

Closed danyx23 closed 1 year ago

danyx23 commented 2 years ago

Core problem

Authors occasionally want to prepare slideshows - either when they are giving lectures or talks or because they think that a certain topic could be given a nice overview with a few dozen charts and a bit of text.

We have an old slideshow setup in the slides repo using reveal.js but there authors have to write (somewhat elaborate) HTML manually which is not great and stops them from doing it.

Proposed solution

In December 2021 in a tech meeting we discussed two options and decided that it would be good if simple posts (shorts) that adhere to a certain structure could be rearranged client side into slides.

A prototype that uses the current version of reveal.js is currently half-finished in PR #1079 . It hides all content of the normal page and then creates new dom nodes in the format expected by reveal.js, then initializes the reveal slideshow.

The critical blockers before this feature could be tried out on actual content are:

Further nice to haves (in order of importance)

Alternatives

One alternative we discussed is that instead of doing the rearranging of content clientside, we could do it during baking or as another offline process. We decided against this because we were afraid of duplicating content too much and because users might want to be able to switch between slideshow view and post view.

Context

Add any other context or screenshots about the feature request here.

larsyencken commented 2 years ago

Marking this as low priority for now, because with Matt on board we're going to review different formats and publishing options that we want in the future.