Skip to content

Commit ec37851

Browse files
committed
Update API and Tutorials for better workflow
1 parent 8311076 commit ec37851

27 files changed

Lines changed: 572 additions & 798 deletions

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ PlantGeomPrimitives = "7eef3cc5-4580-4ff0-8f6f-933507db6664"
99
PlantGeomTurtle = "7d6e2781-1c99-4c66-97ec-106669f3e96e"
1010
PlantGraphs = "615ad455-9aac-4340-9247-71ef610f781a"
1111
PlantRayTracer = "78485975-e4aa-407d-b3bb-ded5a4265d05"
12+
PlantSimEngine = "9a576370-710b-4269-adf9-4f603a9c6423"
1213
PlantViz = "358bd95d-d12c-439f-94b7-04b17e500c7f"
1314
SkyDomes = "1838625c-7cf7-40c6-898b-904883e4b556"
1415

@@ -18,6 +19,7 @@ PlantGeomPrimitives = "0.0.2"
1819
PlantGeomTurtle = "0.0.3"
1920
PlantGraphs = "0.0.2"
2021
PlantRayTracer = "0.0.4"
22+
PlantSimEngine = "^0.8"
2123
PlantViz = "0.0.4"
2224
SkyDomes = "0.1.3"
2325
julia = "1.9"

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PlantGeomPrimitives = "7eef3cc5-4580-4ff0-8f6f-933507db6664"
55
PlantGeomTurtle = "7d6e2781-1c99-4c66-97ec-106669f3e96e"
66
PlantGraphs = "615ad455-9aac-4340-9247-71ef610f781a"
77
PlantRayTracer = "78485975-e4aa-407d-b3bb-ded5a4265d05"
8+
PlantSimEngine = "9a576370-710b-4269-adf9-4f603a9c6423"
89
PlantViz = "358bd95d-d12c-439f-94b7-04b17e500c7f"
910
SkyDomes = "1838625c-7cf7-40c6-898b-904883e4b556"
1011
VPLDocs = "19246b20-85cd-4f94-a989-28bb6828320f"

docs/make.jl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using VPLDocs
22
using Documenter
3-
import PlantGraphs, PlantGeomPrimitives, PlantGeomTurtle, PlantRayTracer, PlantViz, SkyDomes, Ecophys
3+
import PlantGraphs, PlantGeomPrimitives, PlantGeomTurtle, PlantRayTracer, PlantViz, SkyDomes, Ecophys, PlantSimEngine
44

55
makedocs(;
66
doctest = false,
7-
modules=[VPLDocs, PlantGraphs, PlantGeomPrimitives, PlantGeomTurtle, PlantRayTracer, PlantViz, SkyDomes, Ecophys],
7+
modules = [VPLDocs, PlantGraphs, PlantGeomPrimitives, PlantGeomTurtle, PlantRayTracer, PlantViz, SkyDomes, Ecophys, PlantSimEngine],
88
authors="Alejandro Morales <alejandro.moralessierra@wur.nl> and contributors",
99
repo="https://github.com/VirtualPlantLab/VPLDocs/blob/{commit}{path}#{line}",
1010
sitename="Virtual Plant Laboratory",
@@ -26,14 +26,14 @@ makedocs(;
2626
"3D visualization" => "manual/Visualization.md"
2727
],
2828
"Tutorials" => [
29-
"Algae growth" => "tutorials/Algae/Algae.md",
30-
"The Koch snowflake" => "tutorials/Snowflakes/Snowflakes.md",
31-
"Tree" => "tutorials/Tree/Tree.md",
32-
"Forest" => "tutorials/Forest/Forest.md",
33-
"Growth forest" => "tutorials/GrowthForest/GrowthForest.md",
34-
"Ray-traced forest" => "tutorials/RaytracedForest/RaytracedForest.md",
35-
"Context sensitive rules" => "tutorials/Context/Context.md",
36-
"Relational queries" => "tutorials/RelationalQueries/RelationalQueries.md"
29+
"Algae growth" => "tutorials/algae.md",
30+
"The Koch snowflake" => "tutorials/snowflakes.md",
31+
"Tree" => "tutorials/tree.md",
32+
"Forest" => "tutorials/forest.md",
33+
"Growth forest" => "tutorials/growthforest.md",
34+
"Ray-traced forest" => "tutorials/raytracedforest.md",
35+
"Context sensitive rules" => "tutorials/context.md",
36+
"Relational queries" => "tutorials/relationalqueries.md"
3737
],
3838
"How-to guides" => [
3939
"Setting up a grid cloner" => "howto/GridCloner.md"
@@ -47,18 +47,18 @@ makedocs(;
4747
],
4848
"VPLVerse" => [
4949
"SkyDomes" => [
50-
"SkyDomes package" => "SkyDomes/index.md",
51-
"SkyDomes API" => "SkyDomes/API.md"
50+
"SkyDomes package" => "VPLVerse/SkyDomes/index.md",
51+
"SkyDomes API" => "VPLVerse/SkyDomes/API.md"
5252
],
5353
"Ecophys" => [
54-
"Ecophys package" => "Ecophys/index.md",
55-
"Photosynthesis API" => "Ecophys/photosynthesis.md"
54+
"Ecophys package" => "VPLVerse/Ecophys/index.md",
55+
"Photosynthesis API" => "VPLVerse/Ecophys/photosynthesis.md"
5656
],
5757
"PlantSimEngine" => [
58-
"PlantSimEngine package" => "PlantSimEngine/index.md"
58+
"PlantSimEngine package" => "VPLVerse/PlantSimEngine/index.md"
5959
],
6060
"PlantBioPhysics" => [
61-
"PlantBioPhysics package" => "PlantBioPhysics/index.md"
61+
"PlantBioPhysics package" => "VPLVerse/PlantBioPhysics/index.md"
6262
]
6363
],
6464
"Developers" => [

docs/src/Ecophys/photosynthesis.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/src/PlantSimEngine/index.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/src/SkyDomes/API.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
File renamed without changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
# Photosynthesis
3+
4+
```@meta
5+
CurrentModule = Ecophys.Photosynthesis
6+
```
7+
8+
## Public API
9+
10+
```@autodocs
11+
Modules = [Photosynthesis]
12+
Public = true
13+
Private = false
14+
```
15+
16+
## Private
17+
18+
Private functions, types or constants from `Photosynthesis`. These are not exported, so you need to prefix the function name with `PlantGeomPrimitives.` to access them. Also bear in mind that these are not part of the public API, so they may change without notice.
19+
20+
```@autodocs
21+
Modules = [Photosynthesis]
22+
Public = false
23+
Private = true
24+
```
File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# PlantSimEngine
2+
3+
The documentation for PlantSimEngine.jl is hosted in its own [website](https://virtualplantlab.github.io/PlantSimEngine.jl/stable/). Public and private API is documented below:
4+
5+
```@meta
6+
CurrentModule = PlantSimEngine
7+
```
8+
## API documentation
9+
10+
```@autodocs
11+
Modules = [PlantSimEngine]
12+
Private = false
13+
```
14+
15+
## Un-exported
16+
17+
Private functions, types or constants from `PlantSimEngine`. These are not exported, so you need to use `PlantSimEngine.` to access them (*e.g.* `PlantSimEngine.DataFormat`).
18+
19+
```@autodocs
20+
Modules = [PlantSimEngine]
21+
Public = false
22+
Private = true
23+
```

0 commit comments

Comments
 (0)