on master help sign in
Wrote about autocompilation in a tutorial.
4f5d4c1Jasper Van der Jeugt
examples/hakyll/templates/tutorials.html+2−2
@@ -1,6 +1,6 @@
1−<h2>Tutorials about hakyll</h2>
1+<h2>Tutorials about Hakyll</h2>
2<p>
2<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:
4</p>
4</p>
5<ul>
5<ul>
6 $body
6 $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.