Skip to content

Commit

Permalink
Test if assets get copied over in Vitepress
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Sep 24, 2024
1 parent 5d25ddf commit d8aaaab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 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/notebooks/$pth.ipynb)"
"or as a [Notebook](https://github.com/sintefmath/JutulDarcy.jl/blob/gh-pages/dev/$pth.ipynb)"
end
if clean
for (ex, pth) in examples
Expand All @@ -59,11 +59,7 @@ function build_jutul_darcy_docs(build_format = nothing; build_examples = true, b
end
example_path(pth) = joinpath(jutul_dir, "examples", "$pth.jl")
out_dir = joinpath(@__DIR__, "src", "examples")
# https://luxdl.github.io/DocumenterVitepress.jl/dev/render_pipeline#finalization
notebook_dir = joinpath(@__DIR__, "build", "final_site", "notebooks")
if build_notebooks
mkpath(notebook_dir)
end
notebook_dir = joinpath(@__DIR__, "assets")
for (ex, pth) in examples
in_pth = example_path(pth)
is_validation = startswith(ex, "Validation:")
Expand Down

0 comments on commit d8aaaab

Please sign in to comment.