From 87c396de042568dde9cd84d95e859e98838928a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Sat, 13 Jan 2018 16:33:51 -0500 Subject: [PATCH] add another auto-refresh example: entr Peat is great, but it's not already installed in Debian, so I am using `entr` for the same purpose. Improve the FAQ by pointing directly at a commandline that does the equivalent to the peat example. --- docs/faq.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index 6fe33bb..6b8fe73 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -83,10 +83,12 @@ How to regenerate the gallery when something changes ? It can be convenient to build continuously the gallery when adding or removing pictures in the albums, however Sigal does not provide currently a buitin "autoreload" feature. This can be achieved with external tool like `peat -`_, `entr `_, and probably -many others. For instance, with peat:: +`_:: peat --dynamic 'find pictures/' 'sigal build' will watch changes inside the ``pictures/`` directory and rebuild the gallery in -this case. +this case. Many other tools do similar things, here is the equivalent +command with `entr `_:: + + while true; do find pictures/ | entr -d sigal build; done