commit
a3fd82f94b
@ -71,8 +71,7 @@ if isnothing(folder) && isnothing(file)
|
||||
# end
|
||||
build_pages("precalc", "functions", "html", true)
|
||||
build_pages("misc", nothing, "weave_html", true)
|
||||
# toc = joinpath("build", "misc", "toc.html")
|
||||
# cp(toc, joinpath("build","index.html"), force=true)
|
||||
build_toc()
|
||||
else
|
||||
build_pages(folder, file, target, force)
|
||||
end
|
||||
|
@ -7,6 +7,19 @@ const cssfile = joinpath(@__DIR__, "..", "templates", "skeleton_css.css")
|
||||
const htmlfile = joinpath(@__DIR__, "..", "templates", "bootstrap.tpl")
|
||||
const latexfile = joinpath(@__DIR__, "..", "templates", "julia_tex.tpl")
|
||||
|
||||
function build_toc(force=true)
|
||||
infile = joinpath(repo_directory, "CwJ", "misc", "toc.jmd")
|
||||
outfile = joinpath(@__DIR__, "build", "index.html")
|
||||
weave(infile;
|
||||
out_path=outfile,
|
||||
doctype="md2html",
|
||||
fig_ext=".svg",
|
||||
template=htmlfile,
|
||||
fig_path=tempdir())
|
||||
end
|
||||
|
||||
|
||||
|
||||
# do we build the file?
|
||||
function build_file(jmdfile, outfile; force=false)
|
||||
force && return true
|
||||
|
Loading…
Reference in New Issue
Block a user