forked from FilBot3/pandoc_markdown_revealjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (30 loc) · 795 Bytes
/
Makefile
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
download-revealjs:
mkdir -p lib
curl \
--output lib/4.6.0.tar.gz \
--progress-bar \
--location \
--url "https://github.com/hakimel/reveal.js/archive/4.6.0.tar.gz"
tar -zxf lib/4.6.0.tar.gz
mv reveal.js-4.6.0 reveal.js
curl \
--output lib/reveal.js-plugins-4.2.5.tar.gz \
--progress-bar \
--location \
--url "https://github.com/rajgoel/reveal.js-plugins/archive/4.2.5.tar.gz"
tar -zxf lib/reveal.js-plugins-4.2.5.tar.gz -C lib/
mv lib/reveal.js-plugins-4.2.5/* reveal.js/plugin/
# https://pandoc.org/
build:
pandoc \
--standalone \
--mathjax -i\
--to=revealjs \
--output=dist/index.html \
--slide-level=2 \
-V theme="sky" \
src/title.yml \
src/slides.md
# https://docs.python.org/3/library/http.server.html
http:
python -m http.server --directory=dist