diff --git a/docs/make.jl b/docs/make.jl index d0c6161e8..e1f715550 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -28,7 +28,7 @@ makedocs( sitename = "ModelPredictiveControl.jl", #format = Documenter.LaTeX(platform = "none"), doctest = true, - plugins = [links,CodeBlocks()], + plugins = [links, CodeBlocks()], format = Documenter.HTML( prettyurls = get(ENV, "CI", nothing) == "true", edit_link = "main" diff --git a/docs/src/manual/installation.md b/docs/src/manual/installation.md index 90dc0d819..4b2c57b07 100644 --- a/docs/src/manual/installation.md +++ b/docs/src/manual/installation.md @@ -2,6 +2,10 @@ To install the `ModelPredictiveControl` package, run this command in the Julia REPL: +```@codeblocks +line_counter = :continue +``` + ```julia using Pkg; Pkg.activate(); Pkg.add("ModelPredictiveControl") ``` diff --git a/docs/src/manual/linmpc.md b/docs/src/manual/linmpc.md index 9a1a1c109..df2fe2a9b 100644 --- a/docs/src/manual/linmpc.md +++ b/docs/src/manual/linmpc.md @@ -47,6 +47,10 @@ the following linear model accurately describes the plant dynamics: We first need to construct a [`LinModel`](@ref) objet with [`setop!`](@ref) to handle the operating points: +```@codeblocks +line_counter = :continue +``` + ```@example 1 using ModelPredictiveControl, ControlSystemsBase G = [ tf(1.90, [18, 1]) tf(1.90, [18, 1]); diff --git a/docs/src/manual/mtk.md b/docs/src/manual/mtk.md index 90181d439..5c3c43897 100644 --- a/docs/src/manual/mtk.md +++ b/docs/src/manual/mtk.md @@ -24,6 +24,10 @@ the last section. We first construct and instantiate the pendulum model: +```@codeblocks +line_counter = :continue +``` + ```@example 1 using ModelPredictiveControl, ModelingToolkit using ModelingToolkit: D_nounits as D, t_nounits as t diff --git a/docs/src/manual/nonlinmpc.md b/docs/src/manual/nonlinmpc.md index dd6802edc..671f0d25a 100644 --- a/docs/src/manual/nonlinmpc.md +++ b/docs/src/manual/nonlinmpc.md @@ -40,6 +40,10 @@ the end of the pendulum in kg, all bundled in the parameter vector ``\mathbf{p} constructor assumes by default that the state function `f` is continuous in time, that is, an ordinary differential equation system (like here): +```@codeblocks +line_counter = :continue +``` + ```@example man_nonlin using ModelPredictiveControl function f(x, u, _ , p)