Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
20 changes: 15 additions & 5 deletions www/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 4 additions & 1 deletion www/assignments/6.scrbl
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions www/main.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
6 changes: 6 additions & 0 deletions www/slides.scrbl
Original file line number Diff line number Diff line change
@@ -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}