Skip to content

Commit a731f7b

Browse files
author
Daniel Precioso, PhD
committed
Update session section titles in _quarto.yml and add auto-numbering for sidebar sections in styles.css
1 parent 04c487b commit a731f7b

2 files changed

Lines changed: 24 additions & 8 deletions

File tree

_quarto.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ website:
4242
href: index.qmd
4343
- text: "Syllabus"
4444
href: syllabus.qmd
45-
- section: "Session 1: ODEs in 1D"
45+
- section: "ODEs in 1D"
4646
href: modules/ode-1d/index.qmd
4747
contents:
4848
- text: "SIR Epidemic Model"
@@ -53,7 +53,7 @@ website:
5353
href: modules/ode-1d/spruce-budworm.qmd
5454
- text: "Assignment"
5555
href: modules/ode-1d/assignment.qmd
56-
- section: "Session 2: ODEs in 2D"
56+
- section: "ODEs in 2D"
5757
href: modules/ode-2d/index.qmd
5858
contents:
5959
- text: "CDIMA Reaction"
@@ -66,7 +66,7 @@ website:
6666
href: modules/ode-2d/animation.qmd
6767
- text: "Assignment"
6868
href: modules/ode-2d/assignment.qmd
69-
- section: "Session 3: Coupled ODEs"
69+
- section: "Coupled ODEs"
7070
href: modules/ode-coupled/index.qmd
7171
contents:
7272
- text: "Kuramoto Model"
@@ -79,7 +79,7 @@ website:
7979
href: modules/ode-coupled/kuramoto-full.qmd
8080
- text: "Assignment"
8181
href: modules/ode-coupled/assignment.qmd
82-
- section: "Session 4: Collective Motion"
82+
- section: "Collective Motion"
8383
href: modules/collective-motion/index.qmd
8484
contents:
8585
- text: "Vicsek Model"
@@ -96,7 +96,7 @@ website:
9696
href: modules/collective-motion/vicsek-predator.qmd
9797
- text: "Assignment"
9898
href: modules/collective-motion/assignment.qmd
99-
- section: "Session 5: Networks"
99+
- section: "Networks"
100100
href: modules/networks/index.qmd
101101
contents:
102102
- text: "Network Fundamentals"
@@ -111,7 +111,7 @@ website:
111111
href: modules/networks/sir.qmd
112112
- text: "Assignment"
113113
href: modules/networks/assignment.qmd
114-
- section: "Session 6: PDEs"
114+
- section: "PDEs"
115115
href: modules/pde/index.qmd
116116
contents:
117117
- text: "Gierer-Meinhardt 1D"
@@ -126,7 +126,7 @@ website:
126126
href: modules/pde/gray-scott-art.qmd
127127
- text: "Assignment"
128128
href: modules/pde/assignment.qmd
129-
- section: "Session 7: Cellular Automata"
129+
- section: "Cellular Automata"
130130
href: modules/cellular-automata/index.qmd
131131
contents:
132132
- text: "1D Cellular Automata"
@@ -135,7 +135,7 @@ website:
135135
href: modules/cellular-automata/rule-exploration.qmd
136136
- text: "Assignment"
137137
href: modules/cellular-automata/assignment.qmd
138-
- section: "Session 8: Agent-Based Modeling"
138+
- section: "Agent-Based Modeling"
139139
href: modules/agent-based-modeling/index.qmd
140140
contents:
141141
- text: "Traffic Model"

assets/styles.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,19 @@ a {
5151
color: #fff;
5252
}
5353

54+
/* Auto-number the top-level session sections in the sidebar. */
55+
#quarto-sidebar .sidebar-menu-container > ul.list-unstyled.mt-1 {
56+
counter-reset: session-nav;
57+
}
58+
59+
#quarto-sidebar
60+
.sidebar-item.sidebar-item-section
61+
> .sidebar-item-container
62+
> .sidebar-item-text.sidebar-link[href*="modules/"]:not([href*="modules/lorenz/"])
63+
.menu-text::before {
64+
counter-increment: session-nav;
65+
content: counter(session-nav) ". ";
66+
font-variant-numeric: tabular-nums;
67+
font-weight: 700;
68+
}
69+

0 commit comments

Comments
 (0)