Skip to content

Commit 978aca7

Browse files
committed
API documentation page (WIP)
1 parent 8a00ec7 commit 978aca7

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

docs/make.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
using Documenter, ModelingToolkit
1+
using Documenter, ModelingToolkit, DiffEqBase
22

33

44
makedocs(
55
sitename="ModelingToolkit.jl",
66
modules=[ModelingToolkit],
77
pages=[
88
"Home" => "index.md",
9+
"api.md",
910
]
1011
)

docs/src/api.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# API
2+
3+
4+
## Intermediate representation
5+
6+
### Types
7+
8+
```@docs
9+
Expression
10+
Variable
11+
ModelingToolkit.Constant
12+
Operation
13+
Equation
14+
Differential
15+
```
16+
17+
### Functions
18+
19+
```@docs
20+
Base.get(c::ModelingToolkit.Constant)
21+
Base.:~(::Expression, ::Expression)
22+
expand_derivatives
23+
ModelingToolkit.derivative
24+
```
25+
26+
### Macros
27+
28+
```@docs
29+
@parameters
30+
@variables
31+
@derivatives
32+
@register
33+
```
34+
35+
## Systems
36+
37+
### Types
38+
39+
```@docs
40+
ModelingToolkit.AbstractSystem
41+
ODESystem
42+
NonlinearSystem
43+
```
44+
45+
### Functions
46+
47+
```@docs
48+
independent_variables
49+
dependent_variables
50+
parameters
51+
calculate_jacobian
52+
generate_jacobian
53+
generate_function
54+
DiffEqBase.ODEFunction(sys::ODESystem, dvs, ps; version::FunctionVersion = ArrayFunction)
55+
```

0 commit comments

Comments
 (0)