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