Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test CI setup #402

Merged
merged 2 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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])
```