on master help sign in
Add section about inotify
29a18d6Jasper Van der Jeugt
examples/hakyll/tutorial.markdown+15−5
@@ -235,18 +235,28 @@ this can generate more traffic than necessary, since it is possible that some
235files were not actually modified. If you use `rsync`, you can counter this using
235files were not actually modified. If you use `rsync`, you can counter this using
236the `--checksum` option.
236the `--checksum` option.
237
237
238+### Using inotify for the preview server
239+
240+Hakyll is able to use [inotify] to power the preview server. This is generally
241+faster and uses less resources than the default. However, [inotify] is only
242+supported on linux systems. You can enable the bindings using:
243+
244+ [jasper@phoenix] cabal install -finotify hakyll
245+
246+[inotify]: http://inotify.aiken.cz/
247+
238Problems
248Problems
239--------
249--------
240
250
241### regex-pcre dependency on Mac OS X
251### regex-pcre dependency on Mac OS X
242
252
243Hakyll requires [regex-pcre], which might fail to build on Mac OS X. To solve
253Hakyll requires [regex-pcre], which might fail to build on Mac OS X. To solve
244−this problem:
254+this problem, make sure the [pcre] C library is installed (via homebrew or
255+macports). Then install [regex-pcre] using:
256+
257+ cabal install --extra-include-dirs=/usr/local/include regex-pcre
245
258
246−- make sure the [pcre] C library is installed (via homebrew or macports);
247−- install [regex-pcre] using
248− `cabal install --extra-include-dirs=/usr/local/include regex-pcre`;
249−- proceed to install Hakyll the regular way.
259+...and proceed to install Hakyll the regular way.
250
260
251[regex-pcre]: http://hackage.haskell.org/package/regex-pcre
261[regex-pcre]: http://hackage.haskell.org/package/regex-pcre
252[pcre]: http://www.pcre.org/
262[pcre]: http://www.pcre.org/