Skip to content

Commit

Permalink
Merge pull request #324 from anarcat/auto-impr
Browse files Browse the repository at this point in the history
add another auto-refresh example: entr
  • Loading branch information
saimn committed May 2, 2018
2 parents d6843ce + 87c396d commit 8c75374
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/faq.rst
Expand Up @@ -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
<https://github.com/sjl/peat>`_, `entr <http://entrproject.org/>`_, and probably
many others. For instance, with peat::
<https://github.com/sjl/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 <http://entrproject.org/>`_::

while true; do find pictures/ | entr -d sigal build; done

0 comments on commit 8c75374

Please sign in to comment.