Goal is to be easy to use as a template for Container Solutions presentations using RevealJS.
A dockerized version of the Reveal JS presentation software. To try it out, just do:
docker run -d -p 8000:8000 amouat/revealjs:latest
And open a browser to http://localhost:8000
(use the IP of your VM if
using boot2docker, which can be found by running boot2docker ip
).
To use your own slides, replace /revealjs/pres/slides.md
with your own slides
in Markdown format. The easiest way to do this is with the -v
flag e.g:
docker run -d -p 8000:8000 -p 35729:35729 -v /path/to/my/slides.md:/revealjs/pres/slides.md amouat/revealjs:latest
You can use the the test slides to get an idea for the formatting.
If you want to use straight HTML for the slides, mount the html at /revealjs/index.html
.
If you need to include other files e.g. images, keep them with the presentation file and just mount the directory e.g:
docker run -d -p 8000:8000 -p 35729:35729 -v /my/slide/dir:/revealjs/pres amouat/revealjs:latest
This project is heavily based on Peter Parente's revealjs. This differences are that this version has an updated Dockerfile which uses the NodeJS official image and removes a problematic VOLUME command.
To display presentation author and/or their Twitter account next to the logo in the footer, add config.js in the following format to the presentation volume. The logo, if present, will be automatically resized to be 50px height.
var config = {
author: "Container Solutions",
twitter: "containersoluti",
logo: "pres/logo.png"
};
Currently, the Dockerfile just grabs the newest version of everything, which means it could potentially break at any point. I intend to add another branch which has pegged versions of everything.