-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.jl
More file actions
24 lines (19 loc) · 739 Bytes
/
build.jl
File metadata and controls
24 lines (19 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Weave
filenames = ["01-basics", "02-collections", "03-types" ,
"04-project-1DCA", "05-project-errorprop"]
notesDir = "notes/"
notebookDir = "notebooks/"
function cleanTemps(filename,notesDir;exts=[".out", ".log", ".aux"])
for ext in exts
rm(notesDir * filename * ext)
end
end
for filename in filenames
# Basics
println("Building $(filename)...")
file = filename * ".jmd" # file = filename + extension
weave(file; doctype="md2pdf",
out_path = notesDir) # weaving notes
cleanTemps(filename,notesDir) # removing ugly .tex perifery
convert_doc(file, notebookDir * filename * ".ipynb") # weaving notebooks
end