Reveal JS Presentation Software in a Docker Container
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 22 commits ahead, 25 commits behind amouat:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
pres-test
.dockerignore
.gitignore
Dockerfile
README.md
build.sh
custom.css
index.html
pres.tar
run_test-0.1.sh
run_test.sh
title.js

README.md

Base presentation for Container Solutions

Goal is to be easy to use as a template for Container Solutions presentations using RevealJS.

RevealJS-Docker

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"
};

Stable Version

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.