@@ -5,8 +5,9 @@ using Weave, Pkg, IJulia, InteractiveUtils, Markdown
55repo_directory = joinpath (@__DIR__ ," .." )
66cssfile = joinpath (@__DIR__ , " .." , " templates" , " skeleton_css.css" )
77latexfile = joinpath (@__DIR__ , " .." , " templates" , " julia_tex.tpl" )
8+ default_builds = (:script ,:html ,:github )
89
9- function weave_file (folder,file,build_list= ( :script , :html , :pdf , :github , :notebook ) )
10+ function weave_file (folder,file,build_list= default_builds )
1011 target = joinpath (repo_directory, " tutorials" , folder, file)
1112 @info (" Weaving $(target) " )
1213
@@ -54,14 +55,14 @@ function weave_file(folder,file,build_list=(:script,:html,:pdf,:github,:notebook
5455 end
5556end
5657
57- function weave_all (build_list= ( :script , :html , :pdf , :github , :notebook ) )
58+ function weave_all (build_list= default_builds )
5859 for folder in readdir (joinpath (repo_directory," tutorials" ))
5960 folder == " test.jmd" && continue
6061 weave_folder (folder,build_list)
6162 end
6263end
6364
64- function weave_folder (folder,build_list= ( :script , :html , :pdf , :github , :notebook ) )
65+ function weave_folder (folder,build_list= default_builds )
6566 for file in readdir (joinpath (repo_directory," tutorials" ,folder))
6667 # Skip non-`.jmd` files
6768 if ! endswith (file, " .jmd" )
0 commit comments