This post is about how to use a plain text file to create a HTML5 + Javascript presentation. Among the few options, this time I will use KeyDown which is based on deck.js. An example presentation can be found in this link.
To start creating your deck, install the keydown builder:
After that, we can generate a template from scratch with the basics.
For those that worked before with deck.js this is an improvement making much easier the work.
The result of the generation is a folder with this structure:
That easy is to generate the squeleton of the presentation. Now you can modify the file slides.md
adding your content using Markdown syntax.
Each slide is separated by a !SLIDE
tag.
In the github repository of keydown you can find the details of how to add images and use the template.
After you add your content, you can generate the deck as a HTML5 file using the command:
For me that didn’t work so I checked the open issues and I found an answer in issue 34.
I uninstalled compass 1.0.1
and installed compass 0.12.7
using the following Gemfile:
and then executing bundle to build the deck.
That did the trick and I finally got the slides.html
file.
Once that everything is working propertly, edit the presentation is as simple as write Markdown. Then, the result looks good =) Now just use your arrow keys to move.