Skip to content

Commit 5c5c892

Browse files
Merge pull request #402 from SciML/sf/ci_test
Test CI setup
2 parents 094b125 + 819d037 commit 5c5c892

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/SciMLTutorials.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ function weave_file(folder,file,build_list=(:script,:html,:pdf,:github,:notebook
1414
if :script build_list
1515
println("Building Script")
1616
dir = joinpath(repo_directory,"script",folder)
17-
isdir(dir) || mkdir(dir)
17+
mkpath(dir)
1818
args[:doctype] = "script"
1919
tangle(tmp;out_path=dir)
2020
end
2121
if :html build_list
2222
println("Building HTML")
2323
dir = joinpath(repo_directory,"html",folder)
24-
isdir(dir) || mkdir(dir)
24+
mkpath(dir)
2525
args[:doctype] = "html"
2626
weave(tmp,doctype = "md2html",out_path=dir,args=args; fig_ext=".svg", css=cssfile, kwargs...)
2727
end
2828
if :pdf build_list
2929
println("Building PDF")
3030
dir = joinpath(repo_directory,"pdf",folder)
31-
isdir(dir) || mkdir(dir)
31+
mkpath(dir)
3232
args[:doctype] = "pdf"
3333
try
3434
weave(tmp,doctype="md2pdf",out_path=dir,args=args; template=latexfile, kwargs...)
@@ -39,14 +39,14 @@ function weave_file(folder,file,build_list=(:script,:html,:pdf,:github,:notebook
3939
if :github build_list
4040
println("Building Github Markdown")
4141
dir = joinpath(repo_directory,"markdown",folder)
42-
isdir(dir) || mkdir(dir)
42+
mkpath(dir)
4343
args[:doctype] = "github"
4444
weave(tmp,doctype = "github",out_path=dir,args=args; kwargs...)
4545
end
4646
if :notebook build_list
4747
println("Building Notebook")
4848
dir = joinpath(repo_directory,"notebook",folder)
49-
isdir(dir) || mkdir(dir)
49+
mkpath(dir)
5050
args[:doctype] = "notebook"
5151
Weave.convert_doc(tmp,joinpath(dir,file[1:end-4]*".ipynb"))
5252
end

tutorials/introduction/01-ode_introduction.jmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,4 @@ These are the basic controls in DifferentialEquations.jl. All equations are defi
344344
using SciMLTutorials
345345
SciMLTutorials.tutorial_footer(WEAVE_ARGS[:folder],WEAVE_ARGS[:file])
346346
```
347+

0 commit comments

Comments
 (0)