-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (33 loc) · 1.5 KB
/
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
33
34
35
36
37
all: presentation.html
%.preprocessed.md: %.md Makefile preprocess.sc examples/*.scala
./preprocess.sc $< > $@
%.html: %.preprocessed.md Makefile custom.css
docker run --rm --volume "`pwd`:/data" --user `id -u`:`id -g` pandoc/latex \
$< \
--table-of-contents \
-t revealjs \
--standalone \
--output $@ \
--metadata=date:"`date "+%B %e, %Y"`" \
--no-highlight \
--katex \
`# See reveal.js themes here: https://revealjs.com/themes/` \
`# Use "black" for dark mode.` \
-V theme="white" \
`# See higlight.js themes here: https://highlightjs.org/static/demo/` \
`# Use "atom-one-dark.min.css" for dark mode. Other reasonnable light themes include xcode.css and vs.css.` \
-V header-includes='<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/atom-one-light.min.css">' \
`# Reveal.js options can be set form pandoc: https://github.com/jgm/pandoc/blob/master/data/templates/default.revealjs#L95` \
`# -V center="false"` \
-V width="1200" \
-V height="675" \
-V margin="0.14" \
-V transition="none" \
-V header-includes='<link rel="stylesheet" href="custom.css" />' \
-V include-after='<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/languages/scala.min.js"></script><script>hljs.highlightAll();</script>' \
-V toc-title="Outline" \
-V history="true" \
--shift-heading-level-by=1
.PHONY: clean
clean:
rm -rf *.html