Skip to content

Instantly share code, notes, and snippets.

@stepf
Last active April 5, 2017 13:44
Show Gist options
  • Save stepf/329521a86070e44490ff4cfe7169a967 to your computer and use it in GitHub Desktop.
Save stepf/329521a86070e44490ff4cfe7169a967 to your computer and use it in GitHub Desktop.
Serving Markdown presentations via reveal-md

Usage

Start presentation:

docker-compose up -d

Export slides to slides/slides.pdf:

docker-compose -f docker-compose.yml -f docker-compose.pdfexport.yml up
version: '2'
services:
slides:
command: reveal-md --highlightTheme github --host slides /slides/slides.md
ports:
- "1948"
pdfexport:
image: astefanutti/decktape
command: http://slides:1948/slides.md slides.pdf
depends_on:
- slides
volumes:
- "./slides:/slides"
version: '2'
services:
slides:
build: .
command: reveal-md /slides/slides.md --highlightTheme github
ports:
- "1948"
volumes:
- "./slides:/slides"
FROM alpine:3.4
RUN apk update \
&& apk add --no-cache nodejs \
&& npm install -g reveal-md \
&& rm -rf /var/cache/apk/*
EXPOSE 1948
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment