aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-08-14 09:48:02 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-08-14 09:48:02 +0800
commitf71d6674a033b04a72fe1e1e9ccafdbace110087 (patch)
treea306d20c613d132a3287e39fd2691f79d2c76e8e /tools
parent4119ac51f87641f618284ed85a326cc60be3d541 (diff)
Update
Diffstat (limited to 'tools')
-rwxr-xr-xtools/markdown/reveal14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/markdown/reveal b/tools/markdown/reveal
index 17321d5..c6bf97b 100755
--- a/tools/markdown/reveal
+++ b/tools/markdown/reveal
@@ -1,6 +1,6 @@
1#! /bin/bash 1#! /bin/bash
2 2
3if [[ ! $1 =~ (.md|.slide)$ ]]; then 3if [[ ! $1 =~ (.md|.slide)$ || ! -e $1 ]]; then
4 echo markdown file is not given >&2 4 echo markdown file is not given >&2
5 exit 1 5 exit 1
6fi 6fi
@@ -26,12 +26,20 @@ THEME=${THEME:-serif}
26# tomorrow-night-bright vs2015 vs xcode xt256 26# tomorrow-night-bright vs2015 vs xcode xt256
27HIGHLIGHT_THEME=${HIGHLIGHT_THEME:-base16/zenburn} 27HIGHLIGHT_THEME=${HIGHLIGHT_THEME:-base16/zenburn}
28 28
29
30if [[ $1 =~ / ]]; then
31 DIR="`dirname $1`"
32else
33 DIR="`pwd`"
34fi
35
36set -x
29docker run --rm \ 37docker run --rm \
30 -u `id -u`:`id -g` \ 38 -u `id -u`:`id -g` \
31 -v `pwd`:/slides \ 39 -v "$DIR":/slides \
32 -p 1948:1948 \ 40 -p 1948:1948 \
33 webpronl/reveal-md:5.3.4 \ 41 webpronl/reveal-md:5.3.4 \
34 $1 \ 42 `basename $1` \
35 --static /slides \ 43 --static /slides \
36 #--theme ${THEME} \ 44 #--theme ${THEME} \
37 #--highlight-theme ${HIGHLIGHT_THEME} \ 45 #--highlight-theme ${HIGHLIGHT_THEME} \