Skip to content

Commit 194e058

Browse files
committed
Add Runic.jl code formatting
- Add CI workflow using fredrikekre/runic-action@v1 - Format all source files with Runic.jl 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 2350622 commit 194e058

File tree

8 files changed

+1273
-1272
lines changed

8 files changed

+1273
-1272
lines changed

.github/workflows/FormatCheck.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: format-check
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
- 'main'
8+
- 'release-'
9+
tags: '*'
10+
pull_request:
11+
12+
jobs:
13+
runic:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: fredrikekre/runic-action@v1
18+
with:
19+
version: '1'

docs/make.jl

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,43 @@
1-
using Documenter, ModelingToolkitCourse
2-
# NOTE: OrdinaryDiffEq limited to v6.74.1 because of bug https://github.com/SciML/OrdinaryDiffEq.jl/issues/2250
3-
4-
pages = [
5-
"Home" => "index.md",
6-
"lectures/lecture1.md",
7-
"lectures/lecture2.md",
8-
"lectures/lecture3.md",
9-
"lectures/lecture4.md",
10-
"lectures/lecture6.md",
11-
"lectures/lecture7.md",
12-
"lectures/lecture8.md",
13-
]
14-
15-
ENV["GKSwstype"] = "100"
16-
using Plots
17-
18-
makedocs(sitename = "ModelingToolkit Course",
19-
authors = "Chris Rackauckas",
20-
modules = [ModelingToolkitCourse],
21-
clean = true, doctest = false, linkcheck = true,
22-
linkcheck_ignore = ["https://epubs.siam.org/doi/10.1137/0903023",
23-
"https://link.springer.com/book/10.1007/978-3-642-05221-7",
24-
"http://www.siam.org/journals/auth-info.php"],
25-
format = Documenter.HTML(assets = ["assets/favicon.ico"],
26-
canonical = "https://docs.sciml.ai/ModelingToolkitCourse/stable/"),
27-
pages = pages)
28-
1+
using Documenter, ModelingToolkitCourse
2+
# NOTE: OrdinaryDiffEq limited to v6.74.1 because of bug https://github.com/SciML/OrdinaryDiffEq.jl/issues/2250
3+
4+
pages = [
5+
"Home" => "index.md",
6+
"lectures/lecture1.md",
7+
"lectures/lecture2.md",
8+
"lectures/lecture3.md",
9+
"lectures/lecture4.md",
10+
"lectures/lecture6.md",
11+
"lectures/lecture7.md",
12+
"lectures/lecture8.md",
13+
]
14+
15+
ENV["GKSwstype"] = "100"
16+
using Plots
17+
18+
makedocs(
19+
sitename = "ModelingToolkit Course",
20+
authors = "Chris Rackauckas",
21+
modules = [ModelingToolkitCourse],
22+
clean = true, doctest = false, linkcheck = true,
23+
linkcheck_ignore = [
24+
"https://epubs.siam.org/doi/10.1137/0903023",
25+
"https://link.springer.com/book/10.1007/978-3-642-05221-7",
26+
"http://www.siam.org/journals/auth-info.php",
27+
],
28+
format = Documenter.HTML(
29+
assets = ["assets/favicon.ico"],
30+
canonical = "https://docs.sciml.ai/ModelingToolkitCourse/stable/"
31+
),
32+
pages = pages
33+
)
34+
2935
#=
3036
using LiveServer
3137
serve(dir="build")
32-
=#
33-
34-
deploydocs(repo = "github.com/SciML/ModelingToolkitCourse.git";
35-
push_preview = true)
38+
=#
39+
40+
deploydocs(
41+
repo = "github.com/SciML/ModelingToolkitCourse.git";
42+
push_preview = true
43+
)

0 commit comments

Comments
 (0)