Skip to content

Commit cb8b553

Browse files
Merge pull request #8 from LearningToOptimize/andrewrosemberg-patch-1
Update class01.md
2 parents 3277881 + bbd1bda commit cb8b553

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
version: '1'
2121
- uses: julia-actions/cache@v2
2222
- name: Install dependencies
23-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
24-
- name: Setup symlink
25-
run: ln -s ../../class01/class01.md class01.md
26-
working-directory: docs/src
23+
run: julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
24+
# - name: Setup symlink
25+
# run: ln -s ../../class01/class01.md class01.md
26+
# working-directory: docs/src
2727
- name: Build and deploy
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

class01/class01.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
**Presenter:** Andrew Rosemberg
44

5-
**Topic:** Course map; why PDE-constrained optimization; tooling overview; stability & state-space dynamics; Lyapunov; discretization issues
5+
**Topic:** Course map; why PDE-constrained optimization; tooling overview; stability & state-space dynamics; Lyapunov; discretization issues.
66

77
---
88

@@ -72,4 +72,4 @@ We have prepared a basic (Pluto) [Linear Algebra Primer](./background_materials/
7272
### **Optimization**:
7373
We will use JuMP for some optimization tasks. If you are new to JuMP, please review the [JuMP Tutorial](https://jump.dev/JuMP.jl/stable/tutorials/getting_started/getting_started_with_JuMP/) to familiarize yourself with its syntax and capabilities.
7474

75-
Test your knowledge with this (Pluto) [Modeling Exercise](./background_materials/optimization_homework.jl).
75+
Test your knowledge with this (Pluto) [Modeling Exercise](./background_materials/optimization_homework.jl).

docs/make.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ plutos = [
1010
joinpath(repo_dir, "class01", "background_materials", "basics_math.jl"),
1111
]
1212

13+
if !isdir(build_dir)
14+
symlink(joinpath(repo_dir, "class01"),
15+
joinpath(repo_dir, "docs", "src", "class01")
16+
)
17+
end
18+
1319
makedocs(
1420
sitename = "LearningToControlClass",
1521
format = Documenter.HTML(;
@@ -24,10 +30,12 @@ makedocs(
2430
),
2531
pages = [
2632
"Home" => "index.md",
27-
"Class 1" => "class01.md",
33+
"Class 1" => ["class01/class01.md"],
2834
],
2935
)
3036

37+
rm(joinpath(repo_dir, "docs", "src", "class01"), force=true)
38+
3139
s = Pluto.ServerSession();
3240
for pluto in plutos
3341
nb = Pluto.SessionActions.open(s, pluto; run_async=false)

0 commit comments

Comments
 (0)