Skip to content

Commit

Permalink
Update make.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Apr 4, 2024
1 parent 4f9fb0a commit 190e785
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,14 @@ 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__, "src", "examples")
if build_examples
out_dir = joinpath(@__DIR__, "src", "examples")
push!(examples_markdown, ex => joinpath("examples", "$pth.md"))
upd(content) = update_footer(content, pth)
Literate.markdown(in_pth, out_dir, preprocess = upd)
end
if build_notebooks
out_dir_notebooks = joinpath(@__DIR__, "build", "notebooks")
Literate.notebook(in_pth, out_dir_notebooks)
Literate.notebook(in_pth, out_dir)
end
end
## Docs
Expand Down

0 comments on commit 190e785

Please sign in to comment.