mirror of https://github.com/mpastell/Weave.jl
Don't run latex on travis
parent
700e00b329
commit
4e70d32901
|
@ -1,5 +1,4 @@
|
|||
using Documenter, Weave
|
||||
start_dir = pwd()
|
||||
|
||||
|
||||
makedocs( modules = Weave, sitename="Weave.jl",
|
||||
|
@ -8,9 +7,7 @@ makedocs( modules = Weave, sitename="Weave.jl",
|
|||
"function_index.md"]
|
||||
)
|
||||
|
||||
cd(@__DIR__)
|
||||
include("make_examples.jl")
|
||||
cd(start_dir)
|
||||
|
||||
deploydocs(
|
||||
repo = "github.com/mpastell/Weave.jl.git",
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
using Weave
|
||||
start_dir = pwd()
|
||||
cd(@__DIR__)
|
||||
|
||||
weave("../examples/FIR_design.jmd",
|
||||
informat="markdown", out_path = "build/examples", doctype = "pandoc")
|
||||
|
@ -6,9 +8,6 @@ weave("../examples/FIR_design.jmd",
|
|||
weave("../examples/FIR_design.jmd",
|
||||
informat="markdown", out_path = "build/examples", doctype = "md2html")
|
||||
|
||||
weave("../examples/FIR_design.jmd",
|
||||
informat="markdown", out_path = "build/examples", doctype = "md2pdf")
|
||||
|
||||
cp("../examples/FIR_design.jmd",
|
||||
"build/examples/FIR_design.jmd", force = true)
|
||||
|
||||
|
@ -16,6 +15,15 @@ cp("build/examples/FIR_design.md",
|
|||
"build/examples/FIR_design.txt", force = true)
|
||||
|
||||
weave("../examples/FIR_design_plots.jl", out_path = "build/examples")
|
||||
weave("../examples/FIR_design_plots.jl", doctype = "md2pdf", out_path = "build/examples")
|
||||
|
||||
cp("../examples/FIR_design_plots.jl",
|
||||
"build/examples/FIR_design_plots.jl", force = true)
|
||||
|
||||
if !haskey(ENV, "TRAVIS")
|
||||
weave("../examples/FIR_design.jmd",
|
||||
informat="markdown", out_path = "build/examples", doctype = "md2pdf")
|
||||
weave("../examples/FIR_design_plots.jl", doctype = "md2pdf", out_path = "build/examples")
|
||||
end
|
||||
|
||||
|
||||
cd(start_dir)
|
||||
|
|
|
@ -148,10 +148,10 @@ function weave(source ; doctype = :auto,
|
|||
doc.cwd == pwd() && (outname = basename(outname))
|
||||
@info("Report weaved to $outname")
|
||||
return abspath(outname)
|
||||
#catch err
|
||||
# @warn("Something went wrong during weaving")
|
||||
# @error(sprint(showerror, err))
|
||||
# return nothing
|
||||
catch err
|
||||
@warn("Something went wrong during weaving")
|
||||
@error(sprint(showerror, err))
|
||||
return nothing
|
||||
finally
|
||||
doctype == :auto && (doctype = detect_doctype(doc.source))
|
||||
if occursin("2pdf", doctype)
|
||||
|
|
Loading…
Reference in New Issue