You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/index.md
+37-6Lines changed: 37 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,42 @@
2
2
3
3
The `CTModels.jl` package is part of the [control-toolbox ecosystem](https://github.com/control-toolbox).
4
4
5
-
The root package is [OptimalControl.jl](https://github.com/control-toolbox/OptimalControl.jl) which aims to provide tools to model and solve optimal control problems with ordinary differential equations by direct and indirect methods, both on CPU and GPU.
5
+
!!! note
6
6
7
-
**API Documentation**
7
+
The root package is [OptimalControl.jl](https://github.com/control-toolbox/OptimalControl.jl) which aims to provide tools to model and solve optimal control problems with ordinary differential equations by direct and indirect methods, both on CPU and GPU.
8
8
9
-
```@contents
10
-
Pages = Main.API_PAGES
11
-
Depth = 1
12
-
```
9
+
!!! warning
10
+
11
+
In some examples in the documentation, private methods are shown without the module
12
+
prefix. This is done for the sake of clarity and readability.
13
+
14
+
```julia-repl
15
+
julia> using CTModels
16
+
julia> x = 1
17
+
julia> private_fun(x) # throws an error
18
+
```
19
+
20
+
This should instead be written as:
21
+
22
+
```julia-repl
23
+
julia> using CTModels
24
+
julia> x = 1
25
+
julia> CTModels.private_fun(x)
26
+
```
27
+
28
+
If the method is re-exported by another package,
29
+
30
+
```julia
31
+
module OptimalControl
32
+
import CTModels: private_fun
33
+
export private_fun
34
+
end
35
+
```
36
+
37
+
then there is no need to prefix it with the original module name:
0 commit comments