blob: c6bf97bab73cadf20a4ef53b2a8fb158f3b03864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#! /bin/bash
if [[ ! $1 =~ (.md|.slide)$ || ! -e $1 ]]; then
echo markdown file is not given >&2
exit 1
fi
# Available themes:
# beige black blood league moon night serif simple sky solarized white
THEME=${THEME:-serif}
# Available highlight theme:
# a11y-dark a11y-light agate androidstudio an-old-hope
# arduino-light arta ascetic atom-one-dark atom-one-dark-reasonable
# atom-one-light base16 brown-paper brown-papersq.png codepen-embed
# color-brewer dark default devibeans docco
# far felipec foundation github github-dark github-dark-dimmed
# gml googlecode gradient-dark gradient-light grayscale hybrid
# idea intellij-light ir-black isbl-editor-dark isbl-editor-light kimbie-dark
# kimbie-light lightfair lioshi magula mono-blue monokai
# monokai-sublime night-owl nnfx-dark nnfx-light nord obsidian
# panda-syntax-dark panda-syntax-light paraiso-dark paraiso-light pojoaque
# pojoaque.jpg purebasic qtcreator-dark qtcreator-light rainbow
# routeros school-book shades-of-purple srcery stackoverflow-dark
# stackoverflow-light sunburst tokyo-night-dark tokyo-night-light tomorrow-night-blue
# tomorrow-night-bright vs2015 vs xcode xt256
HIGHLIGHT_THEME=${HIGHLIGHT_THEME:-base16/zenburn}
if [[ $1 =~ / ]]; then
DIR="`dirname $1`"
else
DIR="`pwd`"
fi
set -x
docker run --rm \
-u `id -u`:`id -g` \
-v "$DIR":/slides \
-p 1948:1948 \
webpronl/reveal-md:5.3.4 \
`basename $1` \
--static /slides \
#--theme ${THEME} \
#--highlight-theme ${HIGHLIGHT_THEME} \
|