generated from poldrack/talks-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 885 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
33
34
35
36
37
# This tag should match the release tag in Github
TAG = "Topic_Venue_month_day_year"
all: render-talk push-talk render-pdf push-pdf render-site push-site
render-talk:
-git rm -rf docs/talk/*
cd talk && quarto render talk.qmd
# fix quarto bug
# need to use sed inline mode
# sed -i.bak 's-LICENSE-talk-' docs/talk/index.html
push-talk:
-git add docs/talk/*
-git add docs/talk/images/*
-git add talk/images/*
git commit -a -m"updating changed files"
git push origin main
render-site:
-rm docs/index.html
-git commit -a -m"updating site files"
cd site && quarto render index.qmd
push-site:
git add docs/*
git commit -m"updating changed files"
git push origin main
render-pdf:
-mkdir docs/pdfs
decktape reveal -s 1920x1080 docs/talk/talk.html docs/pdfs/$(TAG).pdf
push-pdf:
git add docs/pdfs/$(TAG).pdf
git commit -m"adding pdf [skip ci]"
git push origin main