site

A custom static site generator written in C.
git clone https://unitehenry.com/git/site.git
Log | Files | Refs | README

commit bc43bec3a7daeece0a0e6a55f6026dfb704724cc
parent 39648ca0b10ab3294ae5e0ba8356f1d8217308f3
Author: Henry Unite <unitehenry@gmail.com>
Date:   Sun, 12 Apr 2026 22:40:56 +0000

chore: lint

Diffstat:
Ascripts/lint | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/scripts/lint b/scripts/lint @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +clang-format -i src/* +npx prettier --write templates +npx prettier --write static/**/*.css + +# Check if any files in the linted directories were modified +if git diff --name-only | grep -E '^(src/|templates/|static/)' | grep -q .; then + echo "Linting required edits. Files were modified." + exit 1 +fi