From 21a3794f6945ece6ec8b90750a6738dba49afd18 Mon Sep 17 00:00:00 2001 From: Will Cook <46428721+wcook04@users.noreply.github.com> Date: Sat, 31 Oct 2026 23:24:16 +0000 Subject: [PATCH] Install website dependencies before contributor paper checks --- CONTRIBUTING.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index daeecc8..33ff456 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,11 +16,16 @@ author of a paper here and want it changed or removed, say so and it will be. Data flows one way: `papers//` to `tools/paper.py` to `web/public/papers/` to `web/`. Keep the code free of knowledge of any one paper. +Install the [prerequisites in the README](README.md#run-the-site), then run +these commands from the repository root. Install the website dependencies +before checking a paper: the paper checker uses its Markdown and maths renderer. + ```sh +npm ci --prefix web python3 -m unittest discover -s tests python3 tools/paper.py check contextual-embeddings python3 tools/paper.py build -cd web && npm ci && npm run test:source && npm run build +cd web && npm run test:source && npm run build ``` `npm run check:source` checks that each reader source file has an entry point.