Skip to content

Commit

Permalink
Merge pull request #402 from SciML/sf/ci_test
Browse files Browse the repository at this point in the history
Test CI setup
  • Loading branch information
ChrisRackauckas authored May 25, 2021
2 parents 094b125 + 819d037 commit 5c5c892
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/SciMLTutorials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ function weave_file(folder,file,build_list=(:script,:html,:pdf,:github,:notebook
if :script build_list
println("Building Script")
dir = joinpath(repo_directory,"script",folder)
isdir(dir) || mkdir(dir)
mkpath(dir)
args[:doctype] = "script"
tangle(tmp;out_path=dir)
end
if :html build_list
println("Building HTML")
dir = joinpath(repo_directory,"html",folder)
isdir(dir) || mkdir(dir)
mkpath(dir)
args[:doctype] = "html"
weave(tmp,doctype = "md2html",out_path=dir,args=args; fig_ext=".svg", css=cssfile, kwargs...)
end
if :pdf build_list
println("Building PDF")
dir = joinpath(repo_directory,"pdf",folder)
isdir(dir) || mkdir(dir)
mkpath(dir)
args[:doctype] = "pdf"
try
weave(tmp,doctype="md2pdf",out_path=dir,args=args; template=latexfile, kwargs...)
Expand All @@ -39,14 +39,14 @@ function weave_file(folder,file,build_list=(:script,:html,:pdf,:github,:notebook
if :github build_list
println("Building Github Markdown")
dir = joinpath(repo_directory,"markdown",folder)
isdir(dir) || mkdir(dir)
mkpath(dir)
args[:doctype] = "github"
weave(tmp,doctype = "github",out_path=dir,args=args; kwargs...)
end
if :notebook build_list
println("Building Notebook")
dir = joinpath(repo_directory,"notebook",folder)
isdir(dir) || mkdir(dir)
mkpath(dir)
args[:doctype] = "notebook"
Weave.convert_doc(tmp,joinpath(dir,file[1:end-4]*".ipynb"))
end
Expand Down
1 change: 1 addition & 0 deletions tutorials/introduction/01-ode_introduction.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,4 @@ These are the basic controls in DifferentialEquations.jl. All equations are defi
using SciMLTutorials
SciMLTutorials.tutorial_footer(WEAVE_ARGS[:folder],WEAVE_ARGS[:file])
```

0 comments on commit 5c5c892

Please sign in to comment.