Skip to content

Commit 8f73e5f

Browse files
authored
Fall 2025 (#207)
Add assignment and slides to web page.
1 parent 23c964f commit 8f73e5f

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

.github/workflows/push.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ name: Build and Deploy
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
env:
10+
GH_TOKEN: ${{ github.token }}
911
steps:
1012
- name: Set timezone
1113
uses: szenius/set-timezone@v2.0
@@ -41,6 +43,11 @@ jobs:
4143
# raco pkg install --auto www/
4244
raco make www/main.scrbl
4345
make -C www main
46+
- name: Download slides
47+
run: |
48+
gh api repos/cmsc430/slides/zipball/pdfs > pdfs.zip
49+
mkdir -p www/main/slides
50+
unzip -jq pdfs.zip '*.pdf' -d www/main/slides/
4451
- name: Upload www for GitHub Pages
4552
uses: actions/upload-pages-artifact@v3
4653
with:

www/Makefile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,24 @@ test: clean
99

1010
$(course): scribble zips
1111

12+
13+
langs = abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity iniquity-gc jig knock loot mug mountebank neerdowell outlaw
14+
assigns = hoax-plus
15+
1216
zips:
1317
mkdir -p $(course)/code/
14-
cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "langs")))'` ; \
15-
tar -c `git ls-files a86 abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity iniquity-gc jig knock loot mug mountebank neerdowell outlaw` | \
16-
(cd ../www/main/code ; tar -x ; \
17-
for f in abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity iniquity-gc jig knock loot mug mountebank neerdowell outlaw ; do \
18+
(cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "langs")))'` ; \
19+
tar -c `git ls-files $(langs)`) | \
20+
(cd $(course)/code/ ; tar -x ; \
21+
for f in $(langs) ; do \
22+
zip $${f}.zip -r $${f}/ ; \
23+
done)
24+
(cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "assignments")))'` ; \
25+
tar -c `git ls-files $(assigns)`) | \
26+
(cd $(course)/code/ ; tar -x ; \
27+
for f in $(assigns) ; do \
1828
zip $${f}.zip -r $${f}/ ; \
19-
done )
29+
done)
2030

2131
scribble:
2232
raco scribble --htmls \

www/assignments/6.scrbl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#lang scribble/manual
22
@(require "../defns.rkt"
3-
"../notes/ev.rkt")
3+
"../notes/ev.rkt"
4+
"../notes/utils.rkt")
45
@title[#:tag "Assignment 6" #:style 'unnumbered]{Assignment 6: List and vector primitives}
56

7+
@src-code["hoax-plus"]
8+
69
@(require (for-label a86 (except-in racket ...)))
710

811
@(require racket/port)

www/main.scrbl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ staff using this @link[feedback]{form}.
5959
@include-section{texts.scrbl}
6060
@include-section{schedule.scrbl}
6161
@include-section{notes.scrbl}
62+
@include-section{slides.scrbl}
6263
@include-section{assignments.scrbl}
6364
@include-section{midterms.scrbl}
6465
@include-section{project.scrbl}

www/slides.scrbl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#lang scribble/manual
2+
3+
@title[#:style '(unnumbered)]{Slides}
4+
5+
Slides are updated after every class:
6+
@link["slides/cmsc430-fall-2025.pdf"]{cmsc430-fall-2025.pdf}

0 commit comments

Comments
 (0)