diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 43a0b11e..53ef0906 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -6,6 +6,8 @@ name: Build and Deploy jobs: build: runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} steps: - name: Set timezone uses: szenius/set-timezone@v2.0 @@ -41,6 +43,11 @@ jobs: # raco pkg install --auto www/ raco make www/main.scrbl make -C www main + - name: Download slides + run: | + gh api repos/cmsc430/slides/zipball/pdfs > pdfs.zip + mkdir -p www/main/slides + unzip -jq pdfs.zip '*.pdf' -d www/main/slides/ - name: Upload www for GitHub Pages uses: actions/upload-pages-artifact@v3 with: diff --git a/www/Makefile b/www/Makefile index cdcefa97..bb089dce 100644 --- a/www/Makefile +++ b/www/Makefile @@ -9,14 +9,24 @@ test: clean $(course): scribble zips + +langs = abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity iniquity-gc jig knock loot mug mountebank neerdowell outlaw +assigns = hoax-plus + zips: mkdir -p $(course)/code/ - cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "langs")))'` ; \ - 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` | \ - (cd ../www/main/code ; tar -x ; \ - for f in abscond blackmail con dupe dodger evildoer extort fraud hustle hoax iniquity iniquity-gc jig knock loot mug mountebank neerdowell outlaw ; do \ + (cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "langs")))'` ; \ + tar -c `git ls-files $(langs)`) | \ + (cd $(course)/code/ ; tar -x ; \ + for f in $(langs) ; do \ + zip $${f}.zip -r $${f}/ ; \ + done) + (cd `racket -e '(require pkg/lib) (display (path->string (pkg-directory "assignments")))'` ; \ + tar -c `git ls-files $(assigns)`) | \ + (cd $(course)/code/ ; tar -x ; \ + for f in $(assigns) ; do \ zip $${f}.zip -r $${f}/ ; \ - done ) + done) scribble: raco scribble --htmls \ diff --git a/www/assignments/6.scrbl b/www/assignments/6.scrbl index f82ed9a1..1746d04c 100644 --- a/www/assignments/6.scrbl +++ b/www/assignments/6.scrbl @@ -1,8 +1,11 @@ #lang scribble/manual @(require "../defns.rkt" - "../notes/ev.rkt") + "../notes/ev.rkt" + "../notes/utils.rkt") @title[#:tag "Assignment 6" #:style 'unnumbered]{Assignment 6: List and vector primitives} +@src-code["hoax-plus"] + @(require (for-label a86 (except-in racket ...))) @(require racket/port) diff --git a/www/main.scrbl b/www/main.scrbl index 722dc2b1..751ba0ec 100644 --- a/www/main.scrbl +++ b/www/main.scrbl @@ -59,6 +59,7 @@ staff using this @link[feedback]{form}. @include-section{texts.scrbl} @include-section{schedule.scrbl} @include-section{notes.scrbl} +@include-section{slides.scrbl} @include-section{assignments.scrbl} @include-section{midterms.scrbl} @include-section{project.scrbl} diff --git a/www/slides.scrbl b/www/slides.scrbl new file mode 100644 index 00000000..4a7469ea --- /dev/null +++ b/www/slides.scrbl @@ -0,0 +1,6 @@ +#lang scribble/manual + +@title[#:style '(unnumbered)]{Slides} + +Slides are updated after every class: +@link["slides/cmsc430-fall-2025.pdf"]{cmsc430-fall-2025.pdf}