From e0d090e4ed7f4310b1007bffbce0f65196d08f37 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 11 Apr 2018 13:15:41 +0200 Subject: [PATCH] mkpath on the output directory --- src/Examples.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Examples.jl b/src/Examples.jl index 43b08f1..4afca69 100644 --- a/src/Examples.jl +++ b/src/Examples.jl @@ -106,6 +106,7 @@ function script(inputfile, outputdir; preprocess = identity, postprocess = ident name = filename(inputfile), kwargs...) # normalize paths inputfile = realpath(abspath(inputfile)) + mkpath(outputdir) outputdir = realpath(abspath(outputdir)) @info "generating plain script file from $(inputfile)" # read content @@ -181,6 +182,7 @@ function markdown(inputfile, outputdir; preprocess = identity, postprocess = ide codefence::Pair = "```@example $(name)" => "```", kwargs...) # normalize paths inputfile = realpath(abspath(inputfile)) + mkpath(outputdir) outputdir = realpath(abspath(outputdir)) @info "generating markdown page from $(inputfile)" # read content @@ -267,6 +269,7 @@ function notebook(inputfile, outputdir; preprocess = identity, postprocess = ide name = filename(inputfile), kwargs...) # normalize paths inputfile = realpath(abspath(inputfile)) + mkpath(outputdir) outputdir = realpath(abspath(outputdir)) @info "generating notebook from $(inputfile)" # read content