Added presentation slide-show framework
Just used ma.md as slides, so no real content.
This commit is contained in:
43
presentation/Makefile
Executable file
43
presentation/Makefile
Executable file
@ -0,0 +1,43 @@
|
||||
### INPUT & OUTPUT ##########################################################
|
||||
|
||||
MD := $(wildcard *.md)
|
||||
HTML := $(patsubst %.md, %.html, $(MD))
|
||||
|
||||
### TEMPLATE CONFIG #########################################################
|
||||
|
||||
TDIR := ./template
|
||||
TEMPLATE := $(TDIR)/template.html
|
||||
|
||||
|
||||
### EXPLICIT RULES ##########################################################
|
||||
|
||||
.PHONY: html
|
||||
|
||||
html: $(HTML)
|
||||
|
||||
htmlold: $(HTMOLD)
|
||||
|
||||
$(HTML): $(SRC) $(TEMPLATE)
|
||||
|
||||
clean:
|
||||
rm -f $(HTML)
|
||||
|
||||
### IMPLICIT RULES ##########################################################
|
||||
|
||||
# new syntax with filters
|
||||
%.html: %.md
|
||||
cat $< | \
|
||||
pandoc \
|
||||
--from markdown+link_attributes+smart+line_blocks+emoji \
|
||||
--to revealjs \
|
||||
--section-divs \
|
||||
--no-highlight \
|
||||
--mathjax \
|
||||
--template $(TEMPLATE) \
|
||||
--variable template=$(TDIR) \
|
||||
--variable chalkboard=${<:.md=.json} \
|
||||
--filter styling \
|
||||
--filter cols \
|
||||
--filter media \
|
||||
--filter clean \
|
||||
-o $@
|
Reference in New Issue
Block a user