Skip to content

Commit 8110429

Browse files
authored
Merge pull request #433 from JuliaControl/doc_lineno
doc: continue line numbers in "Manual" section
2 parents 34600a0 + c9fe1a9 commit 8110429

5 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎docs/make.jl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ makedocs(
2828
sitename = "ModelPredictiveControl.jl",
2929
#format = Documenter.LaTeX(platform = "none"),
3030
doctest = true,
31-
plugins = [links,CodeBlocks()],
31+
plugins = [links, CodeBlocks()],
3232
format = Documenter.HTML(
3333
prettyurls = get(ENV, "CI", nothing) == "true",
3434
edit_link = "main"

‎docs/src/manual/installation.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
To install the `ModelPredictiveControl` package, run this command in the Julia REPL:
44

5+
```@codeblocks
6+
line_counter = :continue
7+
```
8+
59
```julia
610
using Pkg; Pkg.activate(); Pkg.add("ModelPredictiveControl")
711
```

‎docs/src/manual/linmpc.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ the following linear model accurately describes the plant dynamics:
4747
We first need to construct a [`LinModel`](@ref) objet with [`setop!`](@ref) to handle the
4848
operating points:
4949

50+
```@codeblocks
51+
line_counter = :continue
52+
```
53+
5054
```@example 1
5155
using ModelPredictiveControl, ControlSystemsBase
5256
G = [ tf(1.90, [18, 1]) tf(1.90, [18, 1]);

‎docs/src/manual/mtk.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ the last section.
2424

2525
We first construct and instantiate the pendulum model:
2626

27+
```@codeblocks
28+
line_counter = :continue
29+
```
30+
2731
```@example 1
2832
using ModelPredictiveControl, ModelingToolkit
2933
using ModelingToolkit: D_nounits as D, t_nounits as t

‎docs/src/manual/nonlinmpc.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ the end of the pendulum in kg, all bundled in the parameter vector ``\mathbf{p}
4040
constructor assumes by default that the state function `f` is continuous in time, that is,
4141
an ordinary differential equation system (like here):
4242

43+
```@codeblocks
44+
line_counter = :continue
45+
```
46+
4347
```@example man_nonlin
4448
using ModelPredictiveControl
4549
function f(x, u, _ , p)

0 commit comments

Comments
 (0)