Skip to content

Commit 0321045

Browse files
committed
up doc
1 parent e606e7b commit 0321045

27 files changed

Lines changed: 401 additions & 38 deletions

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "CTModels"
22
uuid = "34c4fa32-2049-4079-8329-de33c2a22e2d"
33
authors = ["Olivier Cots <olivier.cots@toulouse-inp.fr>"]
4-
version = "0.5.1"
4+
version = "0.5.2"
55

66
[deps]
77
CTBase = "54762871-cc72-4466-b8e8-f6c8b58076cd"

docs/Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3+
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
4+
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
35
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
46

57
[compat]
68
Documenter = "1"
9+
JLD2 = "0.5"
10+
JSON3 = "1.14"
711
Plots = "1.40"
812
julia = "1.10"

docs/make.jl

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
using Documenter
22
using CTModels
33
using Plots
4+
using JSON3
5+
using JLD2
6+
7+
const CTModelsPlots = Base.get_extension(CTModels, :CTModelsPlots)
8+
const CTModelsJSON = Base.get_extension(CTModels, :CTModelsJSON)
9+
const CTModelsJLD = Base.get_extension(CTModels, :CTModelsJLD)
410

511
# to add docstrings from external packages
6-
Modules = [Plots]
12+
Modules = [Plots, CTModelsPlots, CTModelsJSON, CTModelsJLD]
713
for Module in Modules
814
isnothing(DocMeta.getdocmeta(Module, :DocTestSetup)) &&
915
DocMeta.setdocmeta!(Module, :DocTestSetup, :(using $Module); recursive=true)
@@ -24,7 +30,32 @@ makedocs(;
2430
asset("https://control-toolbox.org/assets/js/documentation.js"),
2531
],
2632
),
27-
pages=["Introduction" => "index.md", "Developers" => "dev.md"],
33+
pages=[
34+
"Introduction" => "index.md",
35+
"API" => [
36+
"constraints.md",
37+
"control.md",
38+
"ctmodels.md",
39+
"default.md",
40+
"definition.md",
41+
"dual_model.md",
42+
"dynamics.md",
43+
"init.md",
44+
"jld.md",
45+
"json.md",
46+
"model.md",
47+
"objective.md",
48+
"plot.md",
49+
"print.md",
50+
"solution.md",
51+
"state.md",
52+
"time_dependence.md",
53+
"times.md",
54+
"types.md",
55+
"utils.md",
56+
"variable.md",
57+
]
58+
],
2859
checkdocs=:none,
2960
)
3061

docs/src/constraints.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Constraints
2+
3+
## Index
4+
5+
```@index
6+
Pages = ["constraints.md"]
7+
Modules = [CTModels]
8+
Order = [:module, :constant, :type, :function, :macro]
9+
```
10+
11+
## Documentation
12+
13+
```@autodocs
14+
Modules = [CTModels]
15+
Order = [:module, :constant, :type, :function, :macro]
16+
Pages = ["constraints.jl"]
17+
```

docs/src/control.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Control
2+
3+
## Index
4+
5+
```@index
6+
Pages = ["control.md"]
7+
Modules = [CTModels]
8+
Order = [:module, :constant, :type, :function, :macro]
9+
```
10+
11+
## Documentation
12+
13+
```@autodocs
14+
Modules = [CTModels]
15+
Order = [:module, :constant, :type, :function, :macro]
16+
Pages = ["control.jl"]
17+
```

docs/src/ctmodels.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CTModels
2+
3+
## Index
4+
5+
```@index
6+
Pages = ["ctmodels.md"]
7+
Modules = [CTModels]
8+
Order = [:module, :constant, :type, :function, :macro]
9+
```
10+
11+
## Documentation
12+
13+
```@autodocs
14+
Modules = [CTModels]
15+
Order = [:module, :constant, :type, :function, :macro]
16+
Pages = ["CTModels.jl"]
17+
```

docs/src/default.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Default
2+
3+
## Index
4+
5+
```@index
6+
Pages = ["default.md"]
7+
Modules = [CTModels]
8+
Order = [:module, :constant, :type, :function, :macro]
9+
```
10+
11+
## Documentation
12+
13+
```@autodocs
14+
Modules = [CTModels]
15+
Order = [:module, :constant, :type, :function, :macro]
16+
Pages = ["default.jl"]
17+
```

docs/src/definition.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Definition
2+
3+
## Index
4+
5+
```@index
6+
Pages = ["definition.md"]
7+
Modules = [CTModels]
8+
Order = [:module, :constant, :type, :function, :macro]
9+
```
10+
11+
## Documentation
12+
13+
```@autodocs
14+
Pages = ["definition.jl"]
15+
Modules = [CTModels]
16+
Order = [:module, :constant, :type, :function, :macro]
17+
```

docs/src/dev.md

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

docs/src/dual_model.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Dual Model
2+
3+
## Index
4+
5+
```@index
6+
Pages = ["dual_model.md"]
7+
Modules = [CTModels]
8+
Order = [:module, :constant, :type, :function, :macro]
9+
```
10+
11+
## Documentation
12+
13+
```@autodocs
14+
Pages = ["dual_model.jl"]
15+
Modules = [CTModels]
16+
Order = [:module, :constant, :type, :function, :macro]
17+
```

0 commit comments

Comments
 (0)