Writing a full Reveal.js presentation in a separate file with the Asciidoc format is great, but I found the setup painful.
So here is a simple boilerplate for a better author experience (AX :-3 ). Designed with VS Code in mind.
- Preset global parameters
- Plugins pre-installed: navigation menu (
M
key to open) and full-text search (Ctrl+Shift+F
) - Some snippets
- Live reload
- A simple theme borrowed from here, with some tweaks and simplifications.
- Download the project.
- Run
npm install
. - Install the suggested extensions in VS Code, grabbed from the
.code-workspace
file. - Every time you save, the presentation is generated, thanks to the Run on Save extension and its settings in the
.code-workspace
file. - To see the result, just open index.html.
- For a full preview, launch the Live Server extension.
- For a quick preview without full style and Reveal-specific syntax, use the command
AsciiDoc: Open Preview to the Side
.
note
: Add a presenter note block.cols
: Add a slide with two columns equal in size, using this feature.cols-subh
: Add a slide with a subheading and two columns beneath.
- The search plugin inside slides works very unpredictably with diacritics. So if you're in that weird tiny minority: déso and sorry about that.
- CSS: Some potential overlap issues with big pictures.