This commit is contained in:
jverzani
2022-05-24 14:47:21 -04:00
parent a3fd82f94b
commit d9851a154d

View File

@@ -31,10 +31,10 @@ end
# build list ⊂ (:script,:html,:weave_html, :pdf,:github,:notebook,:pluto) # build list ⊂ (:script,:html,:weave_html, :pdf,:github,:notebook,:pluto)
function weave_file(folder, file; build_list=(:html,), force=false, kwargs...) function weave_file(folder, file; build_list=(:html,), force=false, kwargs...)
jmd_dir = isdir(folder) ? folder : joinpath(repo_directory,"CwJ",folder) jmd_dir = isdir(folder) ? folder : joinpath(repo_directory, "CwJ", folder)
jmd_file = joinpath(jmd_dir, file) jmd_file = joinpath(jmd_dir, file)
bnm = replace(basename(jmd_file), r".jmd$" => "") bnm = replace(basename(jmd_file), r".jmd$" => "")
build_dir = joinpath(repo_directory, "docs", "build") build_dir = joinpath(@__DIR__, "build")
if !force if !force
#testfile = joinpath(repo_directory, "html", folder, bnm*".html") #testfile = joinpath(repo_directory, "html", folder, bnm*".html")