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
|
using Documenter, Weave
|
||||||
start_dir = pwd()
|
|
||||||
|
|
||||||
|
|
||||||
makedocs( modules = Weave, sitename="Weave.jl",
|
makedocs( modules = Weave, sitename="Weave.jl",
|
||||||
|
@ -8,9 +7,7 @@ makedocs( modules = Weave, sitename="Weave.jl",
|
||||||
"function_index.md"]
|
"function_index.md"]
|
||||||
)
|
)
|
||||||
|
|
||||||
cd(@__DIR__)
|
|
||||||
include("make_examples.jl")
|
include("make_examples.jl")
|
||||||
cd(start_dir)
|
|
||||||
|
|
||||||
deploydocs(
|
deploydocs(
|
||||||
repo = "github.com/mpastell/Weave.jl.git",
|
repo = "github.com/mpastell/Weave.jl.git",
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
using Weave
|
using Weave
|
||||||
|
start_dir = pwd()
|
||||||
|
cd(@__DIR__)
|
||||||
|
|
||||||
weave("../examples/FIR_design.jmd",
|
weave("../examples/FIR_design.jmd",
|
||||||
informat="markdown", out_path = "build/examples", doctype = "pandoc")
|
informat="markdown", out_path = "build/examples", doctype = "pandoc")
|
||||||
|
@ -6,9 +8,6 @@ weave("../examples/FIR_design.jmd",
|
||||||
weave("../examples/FIR_design.jmd",
|
weave("../examples/FIR_design.jmd",
|
||||||
informat="markdown", out_path = "build/examples", doctype = "md2html")
|
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",
|
cp("../examples/FIR_design.jmd",
|
||||||
"build/examples/FIR_design.jmd", force = true)
|
"build/examples/FIR_design.jmd", force = true)
|
||||||
|
|
||||||
|
@ -16,6 +15,15 @@ cp("build/examples/FIR_design.md",
|
||||||
"build/examples/FIR_design.txt", force = true)
|
"build/examples/FIR_design.txt", force = true)
|
||||||
|
|
||||||
weave("../examples/FIR_design_plots.jl", out_path = "build/examples")
|
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",
|
cp("../examples/FIR_design_plots.jl",
|
||||||
"build/examples/FIR_design_plots.jl", force = true)
|
"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))
|
doc.cwd == pwd() && (outname = basename(outname))
|
||||||
@info("Report weaved to $outname")
|
@info("Report weaved to $outname")
|
||||||
return abspath(outname)
|
return abspath(outname)
|
||||||
#catch err
|
catch err
|
||||||
# @warn("Something went wrong during weaving")
|
@warn("Something went wrong during weaving")
|
||||||
# @error(sprint(showerror, err))
|
@error(sprint(showerror, err))
|
||||||
# return nothing
|
return nothing
|
||||||
finally
|
finally
|
||||||
doctype == :auto && (doctype = detect_doctype(doc.source))
|
doctype == :auto && (doctype = detect_doctype(doc.source))
|
||||||
if occursin("2pdf", doctype)
|
if occursin("2pdf", doctype)
|
||||||
|
|
Loading…
Reference in New Issue