-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmake.jl
42 lines (37 loc) · 1.61 KB
/
make.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using Documenter, Pkg, PlanktonIndividuals, Plots
import PlutoSliderServer
Pkg.precompile()
examples = ["vertical_2D_example.jl", "horizontal_2D_example.jl", "surface_mixing_3D_example.jl",
"0D_experiment.jl", "global_ocean_2D_example.jl", "global_ocean_3D_example.jl"]
model_description = [
# "Table Of Content" => "model_description.md",
"Phytoplankton Physiology" => "phyto_equations.md",
"Biogeochemistry" => "bgc_equations.md",
]
makedocs(;
modules = [PlanktonIndividuals],
format = Documenter.HTML(collapselevel = 1, mathengine = MathJax3()),
pages = [
"Home" => "index.md",
"Model Description" => model_description,
"Model Configuration" => "model_setup.md",
"Model Simulation" => "model_run.md",
"GPU Support" => "gpu_support.md",
"Examples" => "examples.md",
"Benchmarks" => "benchmarks.md",
"Library" => "library.md",
"Function index" => "function_index.md" ],
warnonly = [:cross_references,:missing_docs],
doctest = false,
repo="https://github.com/JuliaOcean/PlanktonIndividuals.jl/blob/{commit}{path}#L{line}",
sitename = "PlanktonIndividuals.jl",
authors="Zhen Wu <[email protected]>",
)
for i in examples
fil_in=joinpath(@__DIR__,"..", "examples",i)
fil_out=joinpath(@__DIR__,"build", "examples",i[1:end-2]*"html")
PlutoSliderServer.export_notebook(fil_in)
mv(fil_in[1:end-2]*"html",fil_out)
#cp(fil_in,fil_out[1:end-4]*"jl")
end
deploydocs(repo="github.com/JuliaOcean/PlanktonIndividuals.jl.git")