aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-07-26 11:25:53 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-07-26 11:25:53 +0800
commit54e1962e2622c087d85e5f933905081833c8bcf9 (patch)
tree339ef59a5311f5a721cf2e4b7762cf6aa320a548
parentcbfbcb8f125a1643752ef93c7a045de136914d49 (diff)
Update
-rw-r--r--alias1
-rwxr-xr-xtools/markdown/reveal32
2 files changed, 33 insertions, 0 deletions
diff --git a/alias b/alias
index 1627b5e..b9e23a0 100644
--- a/alias
+++ b/alias
@@ -515,6 +515,7 @@ alias thsr='curl -L google.com >/tmp/foo.html && xdg-open /tmp/foo.html'
515todo() { cd ~/vimwiki && grep -R ' TODO ' --exclude-dir=logseq/; } 515todo() { cd ~/vimwiki && grep -R ' TODO ' --exclude-dir=logseq/; }
516fix() { which $1 && grep -Po 'FIXME.*' $(which $1); } 516fix() { which $1 && grep -Po 'FIXME.*' $(which $1); }
517alias ffmpeg='ffmpeg -hide_banner' 517alias ffmpeg='ffmpeg -hide_banner'
518alias md='reveal'
518 519
519TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' 520TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305'
520TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' 521TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312'
diff --git a/tools/markdown/reveal b/tools/markdown/reveal
new file mode 100755
index 0000000..f0d374b
--- /dev/null
+++ b/tools/markdown/reveal
@@ -0,0 +1,32 @@
1#! /bin/bash
2
3# Available themes:
4# beige black blood league moon night serif simple sky solarized white
5THEME=${THEME:-serif}
6
7# Available highlight theme:
8# a11y-dark a11y-light agate androidstudio an-old-hope
9# arduino-light arta ascetic atom-one-dark atom-one-dark-reasonable
10# atom-one-light base16 brown-paper brown-papersq.png codepen-embed
11# color-brewer dark default devibeans docco
12# far felipec foundation github github-dark github-dark-dimmed
13# gml googlecode gradient-dark gradient-light grayscale hybrid
14# idea intellij-light ir-black isbl-editor-dark isbl-editor-light kimbie-dark
15# kimbie-light lightfair lioshi magula mono-blue monokai
16# monokai-sublime night-owl nnfx-dark nnfx-light nord obsidian
17# panda-syntax-dark panda-syntax-light paraiso-dark paraiso-light pojoaque
18# pojoaque.jpg purebasic qtcreator-dark qtcreator-light rainbow
19# routeros school-book shades-of-purple srcery stackoverflow-dark
20# stackoverflow-light sunburst tokyo-night-dark tokyo-night-light tomorrow-night-blue
21# tomorrow-night-bright vs2015 vs xcode xt256
22HIGHLIGHT_THEME=${HIGHLIGHT_THEME:-base16/zenburn}
23
24docker run --rm \
25 -u `id -u`:`id -g` \
26 -v `pwd`:/slides \
27 -p 1948:1948 \
28 webpronl/reveal-md:5.3.4 \
29 $1 \
30 --static /slides \
31 #--theme ${THEME} \
32 #--highlight-theme ${HIGHLIGHT_THEME} \