Open ablakey opened 6 years ago
It seems like what you might be looking for is a tutorial for using Reveal.js together with Webpack! This is absolutely possible and is something I did myself for a presentation recently. You can look at my presentation for inspiration if you want. Unfortunately, I don't have any tutorial to link to for how to setup Reveal.js and Webpack together, but if you know a bit about Webpack then maybe you can figure it out from my example.
However, be aware that most people just include the Reveal.js file directly without any kind of bundling or build step. That way Reveal.js can just handle all of that at runtime when you open up the presentation. That works just as well for most peoples use cases.
If you want to write your presentation as markdown with a build step then the best solution is probably not to use Reveal.js built inn markdown support, but a Webpack markdown loader instead.
Just started looking at revealjs and came across the same question myself...
Although there is no build step in package.json, there does appear to be a grunt package step defined here.
So, under the scripts section in package.json, you could add the following line to get a built reveal-js-presentation.zip:
"package" : "grunt package"
... and then at the command line call grunt/npm/yarn package
.
PS: You may want to edit the default task in Gruntfile.js and remove the qunit target if you don't plan on using unit tests - I found that the build failed for me with the starter code expecting 2 slides but getting 3.
Unfortunately there's no Gruntfile
anymore in the latest master.
I found that there's a build
script defined in package.json
but that only builds some assets, without the slides themselves.
I'm currently in the process of re-writing a crash-course I hold internally at my company from [hieroglyph][1] to reveal.js
as the former seems dead (and I am also starting to like reveal.js
more).
Over the past years I've given this course I always handed out a static copy of those slides. So people could just load that up in the browser (from a zip-file or whatever) and get going. It also made publishing the slides for me quite easily. Just scp it somewhere and I was done.
I write the slides using .md
files, so I have to find some way to build those, as I understand that it won't work otherwise.
Is there any update on this?
I'm at a loss of words. This looks like a very solid library and seems popular. But for the life of me I cannot see some of the more basic features like building my markdown-based presentation into a set of standalone static assets. Where can I find instructions for properly doing this? Otherwise I don't see any practical way to make use of the library where I want to build and host presentations.
Thanks!