mirror of https://github.com/mpastell/Weave.jl
resolve CSS theme path relative to a target document when given in YAML
parent
cec388e94f
commit
87ba87d2d1
|
@ -132,7 +132,7 @@ function weave(
|
||||||
if out_path == ":doc" || out_path == ":pwd"
|
if out_path == ":doc" || out_path == ":pwd"
|
||||||
Symbol(out_path)
|
Symbol(out_path)
|
||||||
else
|
else
|
||||||
joinpath(dirname(source), out_path)
|
normpath(dirname(source), out_path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -145,10 +145,13 @@ function weave(
|
||||||
throw_errors = get(weave_options, "throw_errors", throw_errors)
|
throw_errors = get(weave_options, "throw_errors", throw_errors)
|
||||||
if haskey(weave_options, "template")
|
if haskey(weave_options, "template")
|
||||||
template = weave_options["template"]
|
template = weave_options["template"]
|
||||||
template isa AbstractString && (template = joinpath(dirname(source), template))
|
template isa AbstractString && (template = normpath(dirname(source), template))
|
||||||
|
end
|
||||||
|
if haskey(weave_options, "css")
|
||||||
|
css = weave_options["css"]
|
||||||
|
css isa AbstractString && (css = normpath(dirname(source), css))
|
||||||
end
|
end
|
||||||
highlight_theme = get(weave_options, "highlight_theme", highlight_theme)
|
highlight_theme = get(weave_options, "highlight_theme", highlight_theme)
|
||||||
css = get(weave_options, "css", css)
|
|
||||||
pandoc_options = get(weave_options, "pandoc_options", pandoc_options)
|
pandoc_options = get(weave_options, "pandoc_options", pandoc_options)
|
||||||
latex_cmd = get(weave_options, "latex_cmd", latex_cmd)
|
latex_cmd = get(weave_options, "latex_cmd", latex_cmd)
|
||||||
latex_keep_unicode = get(weave_options, "latex_cmd", latex_keep_unicode)
|
latex_keep_unicode = get(weave_options, "latex_cmd", latex_keep_unicode)
|
||||||
|
|
Loading…
Reference in New Issue