Merge pull request #2 from jverzani/test_ci2

testing
This commit is contained in:
john verzani 2022-05-24 14:40:15 -04:00 committed by GitHub
commit a3fd82f94b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View File

@ -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

View File

@ -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