From e1d6881bcad3b74d25263eaf2f553cdc37c2afa8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 27 Dec 2024 11:27:28 -0800 Subject: organize the justfile --- justfile | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index f126b52..6d70b79 100644 --- a/justfile +++ b/justfile @@ -1,22 +1,32 @@ -# Run the local HTTP server +default: + @just --list + +[group('site')] +[doc('Run the local HTTP server')] run: zola serve -# Generate the content of the site under ./docs +[group('site')] +[doc('Build the site')] build: nix build -# Format files +[group('nix')] +[doc('Format all the files')] fmt: nix fmt +[group('nix')] +[doc('Check the flake')] check: nix flake check -# Check that all the links are valid -check-links: build +[group('site')] +[doc('Validate the site')] +validate: build lychee ./result/**/*.html -# Update flake dependencies +[group('nix')] +[doc('Update the dependencies')] update-deps: nix flake update --commit-lock-file -- cgit v1.2.3