aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--tigrc2
-rwxr-xr-xtools/markdown/reveal14
2 files changed, 12 insertions, 4 deletions
diff --git a/tigrc b/tigrc
index 3ca1720..b2c43c2 100644
--- a/tigrc
+++ b/tigrc
@@ -140,7 +140,7 @@ bind main p none # override default pager binding
140bind main pp ?git push 140bind main pp ?git push
141bind main pP ?git push -u %(remote) %(branch):%(branch) 141bind main pP ?git push -u %(remote) %(branch):%(branch)
142bind main pr ?git push -u %(remote) %(branch):%(branch) 142bind main pr ?git push -u %(remote) %(branch):%(branch)
143bind main pR ?git push -u '%(prompt Which remote? )':%(branch) 143bind main pR ?git push -u '%(prompt Which remote? )' %(branch):'%(prompt Which branch? )'
144bind main pF ?git push --force 144bind main pF ?git push --force
145bind main pd ?git push %(remote) :%(branch) 145bind main pd ?git push %(remote) :%(branch)
146bind generic pD ?git push '%(prompt Delete from which remote? )' :'%(prompt Which reference? )' 146bind generic pD ?git push '%(prompt Delete from which remote? )' :'%(prompt Which reference? )'
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} \