diff --git a/README.md b/README.md index 1c6b9d6..5c8c44d 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This repository contains all the handouts I've written for the [ORMC](https://ci If you are not affiliated with the ORMC, ask for permission before using these. + + ## Contents Handouts are sorted by the class they're for: @@ -12,7 +14,17 @@ Handouts are sorted by the class they're for: Grade levels are estimates. -## Usage + + +## Getting the Handouts + +If you don't want to compile these yourself, I've configured CI that puts the latest pdfs [here](https://nc.betalupi.com/s/ormc-handouts). + +**For my students:** Handouts will appear here a few days before class. Please don't look at them (or their solutions) beforehand, that spoils all the fun! + + + +## Building them Yourself Most handouts use a custom document class. If you move any files out of this repository, you'll need to change a few things for the handout to compile: 1. Download [`./resources/ormc_handout.cls`](./resources/ormc_handout.cls). diff --git a/resources/scripts/build.py b/resources/scripts/build.py index 12826bf..19a4e73 100644 --- a/resources/scripts/build.py +++ b/resources/scripts/build.py @@ -19,6 +19,7 @@ print(Path.cwd()) # If true, rebuild everything # without checking for changes. +# Currently unused. if "FORCE_ALL" in e: force_all = e["FORCE_ALL"] == "true" else: @@ -36,13 +37,13 @@ class FakeClient: pass def mkdir(self, path): - print(f"Making dir {path}") + print(f"[Dry run] Making dir {path}") def upload_sync(self, local_path, remote_path): - print(f"Sync {local_path} to {remote_path}") + print(f"[Dry run] Synced {local_path} to {remote_path}") def clean(self, path): - print(f"Cleaning {path}") + print(f"[Dry run] Cleaning {path}") @@ -136,6 +137,9 @@ for i, item in enumerate(config["dir-of-dirs"]): target_dir / (s.stem + ".sols.pdf") ) + +# TODO: this breaks when the output directory is empty. +# Fix it eventually. if not test: # Delete old files for i in client.list(): @@ -146,4 +150,6 @@ if not test: upload_dir(output) # Remove output files so they don't persist -shutil.rmtree(output) \ No newline at end of file +# shutil.rmtree(output) +# Shouldn't be necessary if you tell +# jenkins to "clean before checkout." \ No newline at end of file