Skip to content

Commit

Permalink
Another attempt at building notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Sep 24, 2024
1 parent 55509f0 commit f438f3d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function build_jutul_darcy_docs(build_format = nothing; build_examples = true, b
return content*"\n\n # ## Example on GitHub\n "*
"# If you would like to run this example yourself, it can be downloaded from "*
"the JutulDarcy.jl GitHub repository [as a script](https://github.com/sintefmath/JutulDarcy.jl/blob/main/examples/$pth.jl), "*
"or as a [Notebook](https://github.com/sintefmath/JutulDarcy.jl/blob/gh-pages/dev/examples/$pth.ipynb)"
"or as a [Notebook](https://github.com/sintefmath/JutulDarcy.jl/blob/gh-pages/dev/notebooks/$pth.ipynb)"
end
if clean
for (ex, pth) in examples
Expand All @@ -60,7 +60,8 @@ function build_jutul_darcy_docs(build_format = nothing; build_examples = true, b
example_path(pth) = joinpath(jutul_dir, "examples", "$pth.jl")
for (ex, pth) in examples
in_pth = example_path(pth)
out_dir = joinpath(@__DIR__, "build", "examples")
out_dir = joinpath(@__DIR__, "build", "notebooks")
mkpath(out_dir)
is_validation = startswith(ex, "Validation:")
is_intro = startswith(ex, "Intro: ")
is_example = !(is_intro || is_validation)
Expand Down

0 comments on commit f438f3d

Please sign in to comment.