From 10398290704e99a969aec921bb392af6552b383a Mon Sep 17 00:00:00 2001 From: Denis Chevalier Date: Tue, 11 Aug 2026 01:48:41 +0200 Subject: typo in README.md, add git hook for new typ files SPDX header --- CONTRIBUTING.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'CONTRIBUTING.md') diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6847e39..331d51e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,7 +66,15 @@ fails, the PDF build will halt.** cd same ``` -1. **Run a live watch build:** +2. **Enable git hooks:** To automatically inject required SPDX license headers + on newly created `.typ` files: + + ```bash + chmod +x .githooks/pre-commit + git config core.hooksPath .githooks + ``` + +3. **Run a live watch build:** ```bash typst watch preamble.typ specification.pdf @@ -74,7 +82,7 @@ fails, the PDF build will halt.** *If your edits break an assertion metrology check anywhere in the 90+ pages, Typst will throw an immediate compiler error in your terminal.* -2. **Perform a clean release compile:** +4. **Perform a clean release compile:** ```bash typst compile preamble.typ specification.pdf -- cgit