From 72d24e3b13560f94bdcfd986fda47b20f0ad4227 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 15 Jun 2026 23:36:14 +0300 Subject: Make the favicon configurable via FAVICON config / --favicon flag The generated pages link a favicon.ico that was always the bundled shuriken favicon (copy_site_favicon hard-copied share/shuriken/assets/favicon.ico). Add a FAVICON config variable and a --favicon PATH CLI flag: when set, that file is published as favicon.ico instead of the bundled default; when empty, the bundled favicon is used as before. Plumbed through apply_config_defaults, CLI_OPTION_SPEC + override allowlist, usage, print_config, the action config list and effective-setting log, and validated (a non-empty FAVICON must be a readable file) before generation. shuriken.default.conf and the README document it; a test covers a custom favicon, its appearance in --print-config, and rejection of a missing file. Co-Authored-By: Claude Opus 4.8 --- src/shuriken.default.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shuriken.default.conf') diff --git a/src/shuriken.default.conf b/src/shuriken.default.conf index c0fe41a..9d0b1a8 100644 --- a/src/shuriken.default.conf +++ b/src/shuriken.default.conf @@ -28,6 +28,10 @@ DIST_DIR=$(pwd)/dist TEMPLATE_DIR=/usr/share/shuriken/templates/default #TEMPLATE_DIR=/usr/share/shuriken/templates/minimal +# Custom favicon, published as favicon.ico. Leave unset/empty to use the bundled +# shuriken favicon. Can also be set with --favicon PATH. +#FAVICON=$(pwd)/my-favicon.ico + # Includes a .tar of the incoming dir in the dist, can be yes or no TARBALL_INCLUDE=yes TARBALL_SUFFIX=.tar -- cgit v1.2.3