@@ -14,21 +14,21 @@ function weave_file(folder,file,build_list=(:script,:html,:pdf,:github,:notebook
1414 if :script ∈ build_list
1515 println (" Building Script" )
1616 dir = joinpath (repo_directory," script" ,folder)
17- isdir (dir) || mkdir (dir)
17+ mkpath (dir)
1818 args[:doctype ] = " script"
1919 tangle (tmp;out_path= dir)
2020 end
2121 if :html ∈ build_list
2222 println (" Building HTML" )
2323 dir = joinpath (repo_directory," html" ,folder)
24- isdir (dir) || mkdir (dir)
24+ mkpath (dir)
2525 args[:doctype ] = " html"
2626 weave (tmp,doctype = " md2html" ,out_path= dir,args= args; fig_ext= " .svg" , css= cssfile, kwargs... )
2727 end
2828 if :pdf ∈ build_list
2929 println (" Building PDF" )
3030 dir = joinpath (repo_directory," pdf" ,folder)
31- isdir (dir) || mkdir (dir)
31+ mkpath (dir)
3232 args[:doctype ] = " pdf"
3333 try
3434 weave (tmp,doctype= " md2pdf" ,out_path= dir,args= args; template= latexfile, kwargs... )
@@ -39,14 +39,14 @@ function weave_file(folder,file,build_list=(:script,:html,:pdf,:github,:notebook
3939 if :github ∈ build_list
4040 println (" Building Github Markdown" )
4141 dir = joinpath (repo_directory," markdown" ,folder)
42- isdir (dir) || mkdir (dir)
42+ mkpath (dir)
4343 args[:doctype ] = " github"
4444 weave (tmp,doctype = " github" ,out_path= dir,args= args; kwargs... )
4545 end
4646 if :notebook ∈ build_list
4747 println (" Building Notebook" )
4848 dir = joinpath (repo_directory," notebook" ,folder)
49- isdir (dir) || mkdir (dir)
49+ mkpath (dir)
5050 args[:doctype ] = " notebook"
5151 Weave. convert_doc (tmp,joinpath (dir,file[1 : end - 4 ]* " .ipynb" ))
5252 end
0 commit comments