andreasKroepelin / polylux

A package for creating slides in Typst
https://polylux.dev/book
MIT License
1.17k stars 53 forks source link

Proposal: integration with impress.js #122

Open ntjess opened 11 months ago

ntjess commented 11 months ago

I have a grand vision of using polylux to export a fully featured, standalone HTML presentation. Impress.js is a lightweight, currently maintained, and popular library that could make it happen. It supports subslides, animations, and more.

In contrast to pdfpc, the presentation can be viewed in the browser compared to a niche downloaded application, and impress.js gets much more community support.

Sli.dev and reveal.js are other potential candidates, but are much more complex frameworks that require node.js for deeper configuration and hundreds of MB of installs. So impress.js is a nice lightweight alternative.

What changes need to happen on polylux?

The latter is dead simple -- I've already done this in a proprietary code base with generic svgs; it takes <100 lines of python + Django template. The first point (common representation of slide metadata) would need a bit more community consideration and feedback to do well.

I'd love to know your thoughts! Would you support a PR along these lines?

Enter-tainer commented 11 months ago

i feel like metadata mentioned in 1 can be covered with pdfpc related things. and 2 sounds like some general tool to convert typst doc to impress.js.

drupol commented 11 months ago

Here's the missing link in your OP: https://impress.js.org