-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tupfile
196 lines (150 loc) · 5.72 KB
/
Tupfile
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# The build tool.
# Copyright (C) 2017 Rohit Goswami
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Variables
# Pandoc location
#pandocBinary=$HOME/.local/bin/pandoc
## Output Directories
### Beamer
beamerOut=sap/pres/beamer
### html
htmlPresOut=sap/pres/html
### TeX
texOut=src/tex
# Presentation inputs
&presConf=src/slideConf.yml
&presInp=src/md/slides
# Presentation Libraries
¶LibRJS=src/presFrameworks
# Common Parameters
paraPres=--standalone -f markdown --highlight-style kate --slide-level 2 --filter pandoc-citeproc --filter pandoc-fignos --filter pandoc-eqnos --filter pandoc-tablenos
htmlParaPres=--mathjax $(paraPres)
htmlParaDoc= $(htmlParaPres) --filter src/filters/panfluteInc.py --filter src/filters/panfHeaderList.py
# Images
: foreach src/img/pres/*.* \
|> yarn imagemin %f --out-dir=$(beamerOut)/img/ \
|> $(beamerOut)/img/%b
: foreach src/img/pres/*.* \
|> yarn imagemin %f --out-dir=$(htmlPresOut)/img/ \
|> $(htmlPresOut)/img/%b
: foreach src/img/*.png \
|> yarn imagemin %f --out-dir=sap/img \
|> sap/img/%b
: foreach src/img/favicons/*.* \
|> yarn imagemin %f --out-dir=sap/ \
|> sap/%b
: foreach src/img/previews/*.* \
|> yarn imagemin %f --out-dir=sap/img/previews/ \
|> sap/img/previews/%b
## HTML
### RevealJS Libraries
: foreach &(paraLibRJS)/revealJS/css/*.css \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/css/%b
: foreach &(paraLibRJS)/revealJS/css/theme/*.css \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/css/theme/%b
: foreach &(paraLibRJS)/revealJS/css/print/*.css \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/css/print/%b
: foreach &(paraLibRJS)/revealJS/js/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/js/%b
: foreach &(paraLibRJS)/revealJS/lib/js/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/lib/js/%b
: foreach &(paraLibRJS)/revealJS/lib/css/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/lib/css/%b
: foreach &(paraLibRJS)/revealJS/lib/font/source-sans-pro/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/lib/font/source-sans-pro/%b
: foreach &(paraLibRJS)/revealJS/lib/font/league-gothic/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/lib/font/league-gothic/%b
: foreach &(paraLibRJS)/revealJS/plugin/zoom-js/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/zoom-js/%b
: foreach &(paraLibRJS)/revealJS/plugin/search/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/search/%b
: foreach &(paraLibRJS)/revealJS/plugin/print-pdf/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/print-pdf/%b
: foreach &(paraLibRJS)/revealJS/plugin/notes-server/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/notes-server/%b
: foreach &(paraLibRJS)/revealJS/plugin/notes/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/notes/%b
: foreach &(paraLibRJS)/revealJS/plugin/math/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/math/%b
: foreach &(paraLibRJS)/revealJS/plugin/multiplex/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/multiplex/%b
: foreach &(paraLibRJS)/revealJS/plugin/markdown/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/markdown/%b
: foreach &(paraLibRJS)/revealJS/plugin/highlight/* \
|> yarn shx cp %f %o \
|> $(htmlPresOut)/revealJS/plugin/highlight/%b
### RevealJS Presentation
: &(presConf) &(presInp)/*.md \
|> pandoc -t revealjs $(htmlParaPres) %f -o %o \
-V theme=black \
|> $(htmlPresOut)/zenYoda_starterReveal.html
### Slidy
: &(presConf) &(presInp)/*.md |> \
pandoc -t slidy $(htmlParaPres) %f -o %o\
|> $(htmlPresOut)/zenYoda_starterSlidy.html
### Slideous
: &(presConf) &(presInp)/*.md |> \
pandoc -t slideous $(htmlParaPres) %f -o %o\
|> $(htmlPresOut)/zenYoda_starterSlideous.html
### DZ
: &(presConf) &(presInp)/*.md |> \
pandoc -t dzslides $(htmlParaPres) %f -o %o\
|> $(htmlPresOut)/zenYoda_starterDZ.html
### S5
: &(presConf) &(presInp)/*.md |> \
pandoc -t s5 $(htmlParaPres) %f -o %o\
|> $(htmlPresOut)/zenYoda_starterS5.html
## TeX
: &(presConf) &(presInp)/*.md \
| sap/pres/beamer/img/seaTurtle.jpg |> \
pandoc -t beamer $(paraPres) %f -o %o \
|> $(texOut)/zenYoda_starterPres.tex
: $(texOut)/zenYoda_starterPres.tex | sap/pres/beamer/img/seaTurtle.jpg |> \
latexmk %f -r src/tex/.latexmkrc -outdir=$(beamerOut) -silent && \
latexmk -c %f -r src/tex/.latexmkrc -outdir=$(beamerOut) -silent \
|> $(beamerOut)/%B.pdf
# SAP
## html
### css
: src/scss/main.scss |> yarn node-sass %f %o |> sap/css/zenYoda.css
: src/scss/overrides.scss |> yarn node-sass %f %o |> sap/pres/html/css/rjsOverrides.css
# : &(paraLibRJS)/revealJS/css/print/paper.css \
|> yarn shx cp %f %o |> sap/css/print/paper.css
### JS
: src/js/sideNav.js |> yarn shx mkdir -p sap/js && yarn shx cp %f sap/js/main.js |> sap/js/main.js
: src/js/gAnalyticsHive.js |> yarn shx cp %f %o |> sap/js/%b
: src/js/gAnalyticsHive.js |> yarn shx cp %f %o |> sap/pres/html/js/%b
: src/js/rjsConf.js |> yarn shx cp %f %o |> sap/pres/html/js/%b
#### Make SAP
: src/siteConf.yml src/md/site/site.md \
| sap/css/zenYoda.css sap/js/main.js \
|> pandoc -t html5 $(htmlParaDoc) %f -o %o \
|> sap/index.html
: foreach src/md/site/*.md \
|> pandoc -t html5 $(htmlParaDoc) src/siteConf.yml %f -o %o \
|> sap/%B.html