Update after a long time!
This commit is contained in:
parent
2bc7ee5f42
commit
d6f7a51e11
32 changed files with 3005 additions and 117 deletions
30
presentation/Makefile
Normal file
30
presentation/Makefile
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Author: Daniel Nicolas Gisolfi
|
||||
# Date: 2020-8-11
|
||||
|
||||
source=$(shell find . -type f -name "*.md")
|
||||
title=$(shell grep -m 1 title $(source) | cut -d ':' -f2 | xargs)
|
||||
version=$(shell grep -m 1 version $(source) | cut -d ':' -f2 | xargs)
|
||||
theme=$(shell find . -type f -name "*.css")
|
||||
flags=--allow-local-files --theme $(theme)
|
||||
devflags=--server --watch --allow-local-files
|
||||
dist="./dist"
|
||||
|
||||
.PHONY: pptx
|
||||
pptx:
|
||||
marp $(flags) "$(source)" -o "$(dist)/$(title)-$(version).pptx"
|
||||
|
||||
.PHONY: pdf
|
||||
pdf:
|
||||
marp $(flags) "$(source)" -o "$(dist)/$(title)-$(version).pdf"
|
||||
|
||||
.PHONY: html
|
||||
html:
|
||||
marp $(flags) "$(source)" -o "$(dist)/$(title)-$(version).html"
|
||||
|
||||
.PHONY: png
|
||||
png:
|
||||
marp $(flags) --images png "$(source)"
|
||||
|
||||
.PHONY: dev
|
||||
dev:
|
||||
marp $(devflags) .
|
Loading…
Add table
Add a link
Reference in a new issue