forked from pharo-mooc/PharoMooc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.conf
113 lines (113 loc) · 4.55 KB
/
pillar.conf
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
{
"metadata":{
"title" : "{Pharo Mooc}",
"author" : "Damien Cassou, Stéphane Ducasse and Luc Fabresse",
"complement" : "",
"slidesid" : ""
},
"newLine" : #unix,
"defaultExporters" : [ "latex", "Beamer" ],
"headingLevelOffset" : 1,
"defaultScriptLanguage" : "smalltalk",
"outputDirectory" : "build",
"separateOutputFiles" : true,
"configurations" : {
"Texts" : {
"inputFilesGlobs" : [
"Roadmap/.*.pillar",
"Exercises/.*.pillar"
],
"supportCommands" : [
"@mkdir -p $(outputDirectory)/figures",
"@cp Exercises/figures/* $(outputDirectory)/figures"
],
"configurations" : {
"latex" : {
"outputType" : #'latex:sbabook',
"template" : "support/templates/chapter.latex.template",
"makeCommands" : [
"@mkdir -p `dirname $@`",
"./pillar export --to=\"latex:sbabook\" --outputFile=$(<:%.pillar=%.tex.json) $<",
"./mustache --data=$(@:%.pdf=%.tex.json) --template={{template}} > $(@:%.pdf=%.tex)",
"cd `dirname $@` && lualatex `basename $(@:%.pdf=%.tex)`",
"cd `dirname $@` && lualatex `basename $(@:%.pdf=%.tex)`",
"@rm -f $(@:%.pdf=%).{aux,fls,log,fdb_latexmk,listing,nav,out,snm,toc,vrb,json,tex,tex.json}"
]
},
"html" : {
"outputType" : #html,
"template" : "support/templates/chapter.html.template",
"makeCommands" : [
"./pillar export --to='html' --outputFile=$(<:%.pillar=%.html.json) $<",
"./mustache --data=$(@:%.html=%.html.json) --template={{template}} > $@"
]
}
}
},
"Slides" : {
"inputFilesGlobs" : [ "Slides/Week[[:digit:]]*/.*.pillar" ],
"headingLevelOffset" : 0,
"supportCommands" : [
"@mkdir -p $(outputDirectory)/figures",
"@cp Slides/figures/* $(outputDirectory)/figures",
"@mkdir -p $(outputDirectory)/Slides/Week1",
"@mkdir -p $(outputDirectory)/Slides/Week2",
"@mkdir -p $(outputDirectory)/Slides/Week3",
"@mkdir -p $(outputDirectory)/Slides/Week4",
"@mkdir -p $(outputDirectory)/Slides/Week5",
"@mkdir -p $(outputDirectory)/Slides/Week6",
"@mkdir -p $(outputDirectory)/Slides/Week7",
"@cp Slides/Week1/*.pdf $(outputDirectory)/Slides/Week1/",
"@cp Slides/Week1/*.erratum $(outputDirectory)/Slides/Week1/",
"@cp Slides/Week2/*.erratum $(outputDirectory)/Slides/Week2/",
"@cp Slides/Week6/*.erratum $(outputDirectory)/Slides/Week6/",
"@cp Slides/Week7/*.erratum $(outputDirectory)/Slides/Week7/",
"@mkdir -p $(outputDirectory)/Slides/ExtraSlides",
"@cp Slides/ExtraSlides/*.pdf $(outputDirectory)/Slides/ExtraSlides/"
],
"configurations" : {
"Beamer" : {
"outputType" : #beamer,
"template" : "support/templates/slides.pharobeamer.template",
"makeCommands" : [
"@mkdir -p `dirname $@`",
"./pillar export --to=\"Beamer\" --outputFile=$(<:%.pillar=%.tex.json) $<",
"./mustache --data=$(@:%.pdf=%.tex.json) --template={{template}} > $(@:%.pdf=%.tex)",
"cd `dirname $@` && pdflatex `basename $(@:%.pdf=%.tex)` && pdflatex `basename $(@:%.pdf=%.tex)`",
"@rm -f $(@:%.pdf=%).{aux,fls,log,fdb_latexmk,listing,nav,out,snm,toc,vrb,json,tex,tex.json}"
]
},
"Beamer43" : {
"outputType" : #beamer,
"template" : "support/templates/slides.pharobeamer43.template",
"makeCommands" : [
"@mkdir -p `dirname $@`",
"./pillar export --to=\"Beamer\" --outputFile=$(<:%.pillar=%.tex.json) $<",
"./mustache --data=$(@:%.pdf=%.tex.json) --template={{template}} > $(@:%.pdf=%.tex)",
"cd `dirname $@` && pdflatex `basename $(@:%.pdf=%.tex)`",
"@rm -f $(@:%.pdf=%).{aux,fls,log,fdb_latexmk,listing,nav,out,snm,toc,vrb,json,tex,tex.json}"
]
},
"BeamerHandout" : {
"outputType" : #beamer,
"template" : "support/templates/slides.pharobeamerHandout.template",
"makeCommands" : [
"@mkdir -p `dirname $@`",
"./pillar export --to=\"Beamer\" --outputFile=$(<:%.pillar=%.tex.json) $<",
"./mustache --data=$(@:%.pdf=%.tex.json) --template={{template}} > $(@:%.pdf=%.tex)",
"cd `dirname $@` && pdflatex `basename $(@:%.pdf=%.tex)`",
"@rm -f $(@:%.pdf=%).{aux,fls,log,fdb_latexmk,listing,nav,out,snm,toc,vrb,json,tex,tex.json}"
]
},
"DeckJS" : {
"outputType" : #deckJS,
"template" : "support/templates/slides.deckjs.template",
"makeCommands" : [
"./pillar export --to='html' --outputFile=$(<:%.pillar=%.html.json) $<",
"./mustache --data=$(@:%.html=%.html.json) --template={{template}} > $@"
]
}
}
}
}
}