Skip to content

Commit c20dbc6

Browse files
Merge pull request #4545 from KristofferC/kc/typos_whitespace
kc/typos whitespace
2 parents 7d81c35 + 2845a60 commit c20dbc6

45 files changed

Lines changed: 153 additions & 149 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: Documentation
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
- v10
8-
- 'as/su-v4'
9-
tags: '*'
10-
pull_request:
11-
12-
concurrency:
13-
# Skip intermediate builds: always, but for the master branch.
14-
# Cancel intermediate builds: always, but for the master branch.
15-
group: ${{ github.workflow }}-${{ github.ref }}
16-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}
17-
18-
jobs:
19-
build:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v6
23-
- uses: julia-actions/setup-julia@latest
24-
with:
25-
version: 'lts'
26-
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
27-
- name: Install dependencies
28-
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path=joinpath(pwd(), "lib", "ModelingToolkitBase")), PackageSpec(path=joinpath(pwd(), "lib", "SciCompDSL"))]); Pkg.instantiate()'
29-
- name: Build and deploy
30-
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
32-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
33-
JULIA_DEBUG: "Documenter"
34-
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ --code-coverage=user docs/make.jl
35-
- uses: julia-actions/julia-processcoverage@v1
36-
- uses: codecov/codecov-action@v6
37-
with:
38-
files: lcov.info
39-
token: ${{ secrets.CODECOV_TOKEN }}
40-
fail_ci_if_error: true
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- v10
8+
- 'as/su-v4'
9+
tags: '*'
10+
pull_request:
11+
12+
concurrency:
13+
# Skip intermediate builds: always, but for the master branch.
14+
# Cancel intermediate builds: always, but for the master branch.
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.refs != 'refs/tags/*'}}
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: julia-actions/setup-julia@latest
24+
with:
25+
version: 'lts'
26+
- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
27+
- name: Install dependencies
28+
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ -e 'using Pkg; Pkg.develop([PackageSpec(path=pwd()), PackageSpec(path=joinpath(pwd(), "lib", "ModelingToolkitBase")), PackageSpec(path=joinpath(pwd(), "lib", "SciCompDSL"))]); Pkg.instantiate()'
29+
- name: Build and deploy
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
32+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
33+
JULIA_DEBUG: "Documenter"
34+
run: DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia --project=docs/ --code-coverage=user docs/make.jl
35+
- uses: julia-actions/julia-processcoverage@v1
36+
- uses: codecov/codecov-action@v6
37+
with:
38+
files: lcov.info
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
fail_ci_if_error: true

.github/workflows/SpellCheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ jobs:
1010
- name: Checkout Actions Repository
1111
uses: actions/checkout@v6
1212
- name: Check spelling
13-
uses: crate-ci/typos@v1.18.0
13+
uses: crate-ci/typos@v1.18.0

.typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ ser = "ser"
77
isconnection = "isconnection"
88
Ue = "Ue"
99
Derivate = "Derivate"
10+
missings = "missings"
11+
alph = "alph"
12+
fo = "fo"
13+
shs = "shs"

LICENSE.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,33 @@ The ModelingToolkit.jl package is licensed under the MIT "Expat" License:
22

33
> Copyright (c) 2018-22: Yingbo Ma, Christopher Rackauckas, Julia Computing, and
44
> contributors
5-
>
5+
>
66
> Permission is hereby granted, free of charge, to any person obtaining a copy
7-
>
7+
>
88
> of this software and associated documentation files (the "Software"), to deal
9-
>
9+
>
1010
> in the Software without restriction, including without limitation the rights
11-
>
11+
>
1212
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13-
>
13+
>
1414
> copies of the Software, and to permit persons to whom the Software is
15-
>
15+
>
1616
> furnished to do so, subject to the following conditions:
17-
>
17+
>
1818
> The above copyright notice and this permission notice shall be included in all
19-
>
19+
>
2020
> copies or substantial portions of the Software.
21-
>
21+
>
2222
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23-
>
23+
>
2424
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25-
>
25+
>
2626
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27-
>
27+
>
2828
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29-
>
29+
>
3030
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31-
>
31+
>
3232
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
33-
>
33+
>
3434
> SOFTWARE.

NEWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ now always performs this wrapping.
488488
### Upgrade guide
489489

490490
- The function `states` is renamed to `unknowns`. In a similar vein:
491-
491+
492492
+ `unknown_states` is now `solved_unknowns`.
493493
+ `get_states` is `get_unknowns`.
494494
+ `get_unknown_states` is now `get_solved_unknowns`.
@@ -498,7 +498,7 @@ now always performs this wrapping.
498498
- ModelingToolkit.jl now exports common definitions of `t` (time independent variable)
499499
and `D` (the first derivative with respect to `t`). Any models made using ModelingToolkit.jl
500500
should leverage these common definitions. There are three variants:
501-
501+
502502
+ `t` and `D` use DynamicQuantities.jl units. This is the default for standard library
503503
components.
504504
+ `t_unitful` and `D_unitful` use Unitful.jl units.
@@ -522,7 +522,7 @@ now always performs this wrapping.
522522
parameters. Their value cannot be modified directly. Whenever a parameter value is changed, dependent
523523
parameter values are recalculated. For example, if `@parameters p1 p2 = 3p1` then `p2` can not be
524524
modified directly. If `p1` is changed, then `p2` will be updated accordingly. To restore the old behavior:
525-
525+
526526
+ Pass the `split = false` keyword to `structural_simplify`. E.g. `ss = structural_simplify(sys; split = false)`.
527527
+ Pass `split = false` to `@mtkbuild`. E.g. `@mtkbuild sys = ODESystem(...) split = false`.
528528
- Discrete-time system using `Difference` are unsupported. Instead, use the new `Clock`-based syntax.

docs/src/API/System.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ namespaced version of `var`. Note that this can also be used to access subsystem
126126
or analysis points.
127127

128128
!!! note
129-
129+
130130
By default, top-level systems not marked as `complete` will apply their namespace. Systems
131131
marked as `complete` will not do this namespacing. This namespacing behavior can be toggled
132132
independently of whether the system is completed using [`toggle_namespacing`](@ref) and the

docs/src/API/model_building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ has the ability to represent them. Compilation strategies can be implemented ind
242242
on top of [`mtkcompile`](@ref) using the `additional_passes` functionality.
243243

244244
!!! warn
245-
245+
246246
These operators are considered experimental API.
247247

248248
```@docs; canonical = false
@@ -266,7 +266,7 @@ While ModelingToolkit has the capability to represent state machines, it lacks t
266266
to compile and simulate them.
267267

268268
!!! warn
269-
269+
270270
This functionality is considered experimental API
271271

272272
```@docs

docs/src/API/variables.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ ModelingToolkit.isconstant
251251
```
252252

253253
!!! note
254-
254+
255255
[`@constants`](@ref) is a convenient way to create `@parameters` with `tunable = false`
256256
metadata
257257

@@ -422,7 +422,7 @@ system happen at discrete intervals on a clock. While ModelingToolkit cannot yet
422422
such systems, it has the capability to represent them.
423423

424424
!!! warn
425-
425+
426426
These operators are considered experimental API.
427427

428428
```@docs

docs/src/basics/Events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ event = SymbolicDiscreteCallback(
7676
This way, we enforce that `y` will remain the same, and `p` will change.
7777

7878
!!! warning
79-
79+
8080
Symbolic affects come with the guarantee that the state after the callback
8181
will be consistent. However, when using [general functional affects](@ref func_affects)
8282
or [imperative affects](@ref imp_affects) one must be more careful. In

docs/src/basics/InputOutput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ModelingToolkit can generate the dynamics of a system, the function ``M\dot x =
2929
This function takes a vector of variables that are to be considered inputs, i.e., part of the vector ``u``. Alongside returning the function ``f``, [`ModelingToolkit.generate_control_function`](@ref) also returns the chosen state realization of the system after simplification. This vector specifies the order of the state variables ``x``, while the user-specified vector `u` specifies the order of the input variables ``u``.
3030

3131
!!! note "Un-simplified system"
32-
32+
3333
This function expects `sys` to be un-simplified, i.e., `mtkcompile` or `@mtkcompile` should not be called on the system before passing it into this function. `generate_control_function` calls a special version of `mtkcompile` internally.
3434

3535
### Example:

0 commit comments

Comments
 (0)