This image is available on the Docker Hub,
and it is automatically built each time an update is available, so the easiest way to get the image is to
rely on Docker.
$ sudo docker pull docker-reveal.js:latest
If for any reason, you prefer to build the image yourself, just clone this repository and build the image yourself.
$ git clone https://github.com/danidemi/docker-reveal.js.git $ cd docker-reveal.js $ docker build -t "danidemi/docker-reveal.js:latest" .
Create Your Slideshow
Create a directory in your filesystem where you'll author and run your reveal.js slideshow.
$ mkdir <my_fancy_slideshow>
$ cd <my_fancy_slideshow>
Run a Docker container with this command.
$ docker run -d -v $(pwd):/slides/ -p 8000:8000 "danidemi/docker-reveal.js:latest"
Point your browser to http://127.0.0.1:8000
Start editing your slideshow file.
$ touch index.html
If you prefer to edit your slideshow in markdown, create a file following the explanations presented in the pandoc manual.
$ touch index.md
pandocinstallation included in the container to convert your
.mdfile into a
$ (sudo docker exec -i $dockerid /bin/sh -c "pandoc -t revealjs -s -o /slides/index.html") < index.md
Your changes are immediately visible in the browser.
Plese, feel free to open any issue you should have on the GitHub project page.
This Docker Image is based on the default Reveal.js installation.
Gruntfile.js, however defines two additional folders that are served through http,
/slidesdirectory is meant to be used as a Docker volume, mapped to the folder on your host that contains the slideshow materials.
This way, for instance, when you hit http://127.0.0.1:8000, the content that is actually served comes from
/slidesthat in turn is mapped
to your presentation directory on your host.
/pandocdirectory is meant to provide
.jsresources as expected by Pandoc produced files.