Skip to content

Commit

Permalink
copy images when building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Feb 23, 2024
1 parent c411ce6 commit 5e1c173
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ MODELS = [
"Lorenz",
"LotkaVolterra",
"OpAmp",
"SquareWaveOscillator",
"Platoon",
"ProductionDestruction",
"Quadrotor",
"SEIR",
"Spacecraft",
"SquareWaveOscillator",
"TransmissionLine",
"VanDerPol"
#
Expand Down Expand Up @@ -54,8 +54,10 @@ for model in MODELS
# Literate.notebook(input, target_dir_md; execute=true, credit=false)
# if used, add the following to the top of the script files (where `MODELNAME` is the model name):
#md # [![](https://img.shields.io/badge/show-nbviewer-579ACA.svg)](@__NBVIEWER_ROOT_URL__/generated_examples/MODELNAME.ipynb)
elseif any(endswith.(file, [".jld2", ".png"]))
# ignore *.jld2 and *.png files without warning
elseif any(endswith.(file, [".png", ".jpg", ".gif"]))
cp(joinpath(model_path, file), joinpath(target_dir_md, file); force=true)
elseif any(endswith.(file, [".jld2"]))
# ignore *.jld2 files without warning
else
@warn "ignoring $file in $model_path"
end
Expand Down

0 comments on commit 5e1c173

Please sign in to comment.