Wrote about autocompilation in a tutorial.
commit4f5d4c166c37cc0526540852a57e678e5f5e00dc
authorJasper Van der Jeugt <jaspervdj@gmail.com>
dateMon 15 Feb 2010, 16:53 (17 years ago)
parent7fa4011
examples/hakyll/templates/tutorials.html+2−2
@@ -1,6 +1,6 @@
1−<h2>Tutorials about hakyll</h2>
1+<h2>Tutorials about Hakyll</h2>
22<p>
3− Here is a list of tutorials I've written about hakyll:
3+ Here is a list of tutorials I've written about Hakyll:
44</p>
55<ul>
66 $body
examples/hakyll/tutorial7.markdownnew file+19
@@ -0,0 +1,19 @@
1+---
2+title: Tips and Tricks
3+what: some various tips and tricks about Hakyll
4+---
5+
6+## Auto-compilation
7+
8+Hakyll features a simple _auto-compilation_ mode. This is invoked by running
9+
10+~~~~~
11+[jasper@alice ~]$ ./hakyll preview
12+Starting hakyll server on port 8000...
13+~~~~~
14+
15+Now, Hakyll will recompile your site when you change files, so you can just
16+refresh in your browser. There is one more thing to note: this will not update
17+your site automatically when `hakyll.hs` changes. So if you make any changes to
18+the configuration file, you'll have to compile it again, and then you can enter
19+`preview` mode again.