Debian Codegraph @

README

raw
1 -*- mode: org -*-
2
3 Haunt is a static site generator written in Guile Scheme. It's
4 simple, functional, and extensible.
5
6 * Features
7
8 - Easy blog and Atom/RSS feed generation
9 - Supports any markup language that can be parsed to SXML
10 - Simple development server
11 - Purely functional build process
12 - User extensible
13
14 * Example Configuration
15
16 #+BEGIN_SRC scheme
17 (use-modules (haunt site)
18 (haunt reader)
19 (haunt builder blog)
20 (haunt builder atom)
21 (haunt builder assets))
22
23 (site #:title "Built with Guile"
24 #:domain "example.com"
25 #:default-metadata
26 '((author . "Eva Luator")
27 (email . "[email protected]"))
28 #:readers (list sxml-reader html-reader)
29 #:builders (list (blog)
30 (atom-feed)
31 (atom-feeds-by-tag)
32 (static-directory "images"))
33 #+END_SRC
34
35 * Usage
36
37 Write a configuration file named =haunt.scm=. Add your posts to a
38 directory named =posts=. Then run =haunt build=!
39
40 To view your creation, run =haunt serve= and browse to
41 =localhost:8080=. For quicker development cycles, run =haunt serve
42 --watch= to automatically rebuild the site when things change.
43
44 * Requirements
45
46 - GNU Guile >= 2.0.11
47
48 Optional:
49
50 - guile-reader (for Skribe support)
51 - guile-commonmark (for CommonMark support)
52
53 * Building from Git
54
55 Haunt uses the familiar GNU build system. GNU automake, autoconf, and
56 make are required to build from a git checkout.
57
58 #+BEGIN_SRC sh
59 ./bootstrap && ./configure && make
60 #+END_SRC
61
62 Once Haunt is built, it can be run directly from the source tree (no
63 need to run =make install=) via the =pre-inst-env= script:
64
65 #+BEGIN_SRC sh
66 ./pre-inst-env haunt --help
67 #+END_SRC
68
69 GNU Guix users can quickly create a build environment with all of the
70 necessary dependencies using the handy =guix environment= tool:
71
72 #+BEGIN_SRC sh
73 guix environment -l guix.scm
74 #+END_SRC
75
76 * Example
77
78 An example Haunt site can be found in the =example= directory. To
79 build it, run:
80
81 #+BEGIN_SRC sh
82 cd example
83 ../pre-inst-env haunt build
84 #+END_SRC
85
86 * License
87
88 GNU GPLv3 or later. See =COPYING= for the full license text.