Code for the MIT Mystery Hunt / Puzzle Club website. On the Puzzle Club Athena locker at /mit/puzzle/www
.
To edit a page, do not edit the HTML directly. Instead, edit the markdown file under the src
directory.
The src
directory should never have any non-markdown files. It should all go in the top-level directory.
pip install markdown
.python3 build.py
.python3 build.py watch
. It will open a server at http://localhost:8000/, which you can open in your browser to view the site. The script will update the files of the website every second.git pull
the latest version. (If you're daring, you can even git push
to the locker directly, but make sure to keep the Github version in sync with the website version.)We use htm, Preact with preact/compat, and goober. You can pretend that htm+Preact is the same as JSX+React, with some minor differences. The goober part is a way to put CSS in JS, plus nice add-ons like nesting. The file package.js
contains the three libraries above bundled together in a single export. To add more libraries to the export, you can bundle them yourself and then replace the file.