Commit graph

685 commits

Author SHA1 Message Date
Jasper Van der Jeugt
99233f830c Binary instance for DirectedGraph 2011-03-20 15:14:42 +01:00
Jasper Van der Jeugt
85252f8ab8 Fix filepath-1.2 issue in toSiteRoot 2011-03-19 11:31:02 +01:00
Jasper Van der Jeugt
cf71e29546 Make toSiteRoot work with /xxx URL's 2011-03-08 11:03:07 +01:00
Jasper Van der Jeugt
26b233dd7a Tag url links should be absolute 2011-03-07 22:10:07 +01:00
Jasper Van der Jeugt
cb4db8b9d5 Throw nice error in cached 2011-03-07 11:14:20 +01:00
Jasper Van der Jeugt
b9bc7f90e1 Throw nice error in getResourceString 2011-03-07 11:04:01 +01:00
Jasper Van der Jeugt
8cfa962005 Add ErrorT to CompilerM monad stack 2011-03-06 15:56:22 +01:00
Jasper Van der Jeugt
be685e6fcd Add BlazeHtml integration 2011-03-04 11:46:06 +01:00
Jasper Van der Jeugt
21789abd10 Add WritableTuple 2011-03-02 20:37:34 +01:00
Jasper Van der Jeugt
c14d8871b8 Add trySetField, fix bug in renderField 2011-03-01 22:26:02 +01:00
Jasper Van der Jeugt
fa057f3011 Add composeRoutes 2011-03-01 09:40:07 +01:00
Jasper Van der Jeugt
d460fd88d1 Add gsubRoute 2011-02-28 22:40:23 +01:00
Jasper Van der Jeugt
49989eab57 Web.Util.String → {Web.Util.Url, Core.Util.String} 2011-02-28 22:33:28 +01:00
Jasper Van der Jeugt
40d921e8e7 Fix URL error in feeds 2011-02-28 20:44:23 +01:00
Jasper Van der Jeugt
5c454fc2ce Fix $body$ bug, add traceShowCompiler 2011-02-26 15:49:11 +01:00
Jasper Van der Jeugt
b73fc8e831 Add some more information on metacompilation 2011-02-26 11:07:46 +01:00
Jasper Van der Jeugt
c89cfdb456 Add byExtension compiler 2011-02-25 14:36:34 +01:00
Jasper Van der Jeugt
730eebe989 The dependency analyzer now knows a little more 2011-02-25 14:17:30 +01:00
Jasper Van der Jeugt
cd6d968187 Remove debug output 2011-02-23 13:48:40 +01:00
Jasper Van der Jeugt
5abc3d87e2 Add cabal flag for inotify 2011-02-23 10:11:55 +01:00
Jasper Van der Jeugt
371c28cb1a Implement interval-based preview 2011-02-21 13:35:20 +01:00
Jasper Van der Jeugt
917829539c Add report function to logger 2011-02-21 13:15:11 +01:00
Jasper Van der Jeugt
8b57ab509f Add logger to Compiler monad 2011-02-21 13:02:35 +01:00
Jasper Van der Jeugt
12a0e5387b Add Unix filters as compilers 2011-02-21 11:42:19 +01:00
Jasper Van der Jeugt
678f18973f Quit/Sync bug fix 2011-02-21 10:56:04 +01:00
Jasper Van der Jeugt
256cc760ba Add pretty, thread-safe logger 2011-02-21 02:56:57 +01:00
Jasper Van der Jeugt
f04efbad3e Preview/INotify now works 2011-02-19 17:04:50 +01:00
Jasper Van der Jeugt
b89aad6178 Include the directory in the path 2011-02-19 10:39:29 +01:00
Jasper Van der Jeugt
4c75843c81 Fix inotify preview polling 2011-02-18 18:15:52 +01:00
Jasper Van der Jeugt
7aac6ccd5d Add applyTemplateCompiler 2011-02-18 18:15:00 +01:00
Jasper Van der Jeugt
03fb17ec6d defaultApplyTemplate → applyTemplateCompiler 2011-02-15 22:48:15 +01:00
Jasper Van der Jeugt
a5438d8d92 defaultCopyFile → copyFileCompiler 2011-02-15 22:46:43 +01:00
Jasper Van der Jeugt
28a30caef0 defaultTemplateRead → templateCompiler 2011-02-15 22:40:16 +01:00
Jasper Van der Jeugt
bc4fef81b7 defaultRelativizeUrls → relativizeUrlsCompiler 2011-02-15 22:20:39 +01:00
Jasper Van der Jeugt
d00026366c defaultPageRead → defaultPageCompiler 2011-02-15 22:15:02 +01:00
Jasper Van der Jeugt
3346123ca6 Receive list of used resources in Run module 2011-02-15 18:43:22 +01:00
Jasper Van der Jeugt
5a591ee24c Rules DSL tracks resources used 2011-02-15 18:32:55 +01:00
Jasper Van der Jeugt
abfb4c1919 defaultCompressCss → compressCssCompiler 2011-02-15 13:50:10 +01:00
Jasper Van der Jeugt
878ca8f3b0 Document RelativizeUrls module 2011-02-12 20:33:46 +01:00
Jasper Van der Jeugt
1e0c875d6e More Identifier documentation 2011-02-12 16:54:31 +01:00
Jasper Van der Jeugt
f910233e0f Avoid name clashes with pandoc 2011-02-12 15:21:26 +01:00
Jasper Van der Jeugt
6e2cc76928 $key$ instead of $key when not found 2011-02-12 15:03:43 +01:00
Jasper Van der Jeugt
1100f65f76 Document Compiler module 2011-02-12 10:26:58 +01:00
Jasper Van der Jeugt
34257df262 Resource = Identifier with an exists invariant 2011-02-11 23:26:54 +01:00
Jasper Van der Jeugt
2b9858a8f9 Add Resource type for improved type-safety 2011-02-11 17:52:19 +01:00
Jasper Van der Jeugt
fc6df44c22 Document Page module 2011-02-11 17:39:53 +01:00
Jasper Van der Jeugt
7797009646 Document the Template module 2011-02-11 16:09:39 +01:00
Jasper Van der Jeugt
60cda32b72 Add transparent reading of hamlet/hakyll templates 2011-02-11 15:34:34 +01:00
Jasper Van der Jeugt
dd81433d74 Split Rules module, add documentation 2011-02-11 13:30:55 +01:00
Jasper Van der Jeugt
2dfe7f6a67 Document Routes module 2011-02-11 08:48:18 +01:00
Jasper Van der Jeugt
4e0abd872a Update cabal file, fix warnings 2011-02-11 08:39:10 +01:00
Jasper Van der Jeugt
84d920432c Add customRoute 2011-02-11 08:20:35 +01:00
Jasper Van der Jeugt
3829083576 Add defaultApplyTemplate compiler 2011-02-10 22:55:03 +01:00
Jasper Van der Jeugt
c03607e087 Add prototype inotify backend 2011-02-10 20:05:50 +01:00
Jasper Van der Jeugt
77f37c1443 getRecursiveContents can return directories 2011-02-10 18:59:16 +01:00
Jasper Van der Jeugt
48da85b341 Add isFileInternal 2011-02-10 16:42:26 +01:00
Jasper Van der Jeugt
d66155968f Move preview server, update to snap 0.4 2011-02-10 16:04:55 +01:00
Jasper Van der Jeugt
1075096df7 Add sortByBaseName function for pages 2011-02-10 15:08:26 +01:00
Jasper Van der Jeugt
3532d5f100 Top-level module for reading templates 2011-02-10 12:30:58 +01:00
Jasper Van der Jeugt
d9e0c3e86b Some tests for the Page module 2011-02-09 19:28:53 +01:00
Jasper Van der Jeugt
002cf4de32 Add hamlet templates and restructure tests 2011-02-09 18:11:24 +01:00
Jasper Van der Jeugt
7da7e0b96c Add top-level module 2011-02-09 16:59:09 +01:00
Jasper Van der Jeugt
9e07d1ba36 Template syntax: $foo → $foo$ 2011-02-09 13:27:45 +01:00
Jasper Van der Jeugt
ee320c6166 Finish tags module 2011-02-09 13:02:28 +01:00
Jasper Van der Jeugt
f56eb538b6 Lazy pattern matching for compiler composition 2011-02-07 16:01:09 +01:00
Jasper Van der Jeugt
986a74b3af Add mapA 2011-02-07 11:41:09 +01:00
Jasper Van der Jeugt
781138a0e7 Backport sargon's fix (6d8154) 2011-02-06 22:27:11 +01:00
Jasper Van der Jeugt
bd261e9151 Add getRouteFor 2011-02-06 18:32:09 +01:00
Jasper Van der Jeugt
ec9c1ec0db Instantiate ArrowChoice for Compiler 2011-02-05 13:38:20 +01:00
Jasper Van der Jeugt
c093761e89 Route → Routes 2011-02-03 16:07:49 +01:00
Jasper Van der Jeugt
5705bb8f88 Add command-line args 2011-02-03 14:18:09 +01:00
Jasper Van der Jeugt
26c95402d8 Add a top-level configuration type 2011-02-03 11:34:00 +01:00
Jasper Van der Jeugt
97ce6cbfa0 Add setFieldA function 2011-01-30 15:18:38 +01:00
Jasper Van der Jeugt
c691251fc7 Autogenerate metacompiler indentifiers 2011-01-30 10:44:42 +01:00
Jasper Van der Jeugt
6cecbb890f Add fromCaptureString function 2011-01-25 20:56:10 +01:00
Jasper Van der Jeugt
7ba1413ea9 Add suffix to store files
This prevents file/directory clashes. Example:
when we have a `tags` item, and a `tags/foo` item,
there will be a clash since the store creates:

- a file `store/tags`;
- a file `store/tags/foo`.

The second file requires the first file to be a
directory.

We simply solve this by adding a suffix to all
store files, so it becomes:

- a file `store/tags.hakyllstore`;
- a file `store/tags/foo.hakyllstore`.
2011-01-25 13:50:02 +01:00
Jasper Van der Jeugt
e536a5961c Functor & Applicative instances for Compiler 2011-01-25 11:14:22 +01:00
Jasper Van der Jeugt
9b3e524128 Define all require functions in arrows
TODO: Think of a good naming scheme
2011-01-24 13:30:23 +01:00
Jasper Van der Jeugt
69f15f55ee Fix typo in requireAllA doc (thanks beastaugh) 2011-01-19 08:51:18 +01:00
Jasper Van der Jeugt
89cd33c723 Add requireA/requireAllA functions 2011-01-18 23:58:29 +01:00
Jasper Van der Jeugt
374a9dde5a Micro cleanup 2011-01-18 23:58:16 +01:00
Jasper Van der Jeugt
f104f91182 Monoid instance for page 2011-01-18 23:57:58 +01:00
Jasper Van der Jeugt
0bbc01f012 Backports feeds 2011-01-18 13:29:42 +01:00
Jasper Van der Jeugt
821dd38c13 Add some more defaults 2011-01-18 10:33:13 +01:00
Jasper Van der Jeugt
88b823eb5e Make static server configurable 2011-01-18 09:06:54 +01:00
Jasper Van der Jeugt
cea2197924 Add prototype preview server 2011-01-17 23:21:20 +01:00
Jasper Van der Jeugt
2f951598ef Allow IO operations in compilers 2011-01-17 22:43:44 +01:00
Jasper Van der Jeugt
c576424325 Backport ContextManipulations → Metadata 2011-01-17 16:08:37 +01:00
Jasper Van der Jeugt
78391b9be2 Clearer error message 2011-01-17 16:08:13 +01:00
Jasper Van der Jeugt
e3f8856665 Add renderTagCloud prototype 2011-01-17 10:04:09 +01:00
Jasper Van der Jeugt
d569ae5156 Add utility mapA function 2011-01-17 10:03:26 +01:00
Jasper Van der Jeugt
b867e6f204 Fix skipping certain compilers error 2011-01-17 10:02:46 +01:00
Jasper Van der Jeugt
6e7dc0e58f Micro-cleanup 2011-01-14 08:50:34 +01:00
Jasper Van der Jeugt
3ea3c52f53 Rewrite Run module a bit, get rid off obsolete 2011-01-11 20:20:34 +01:00
Jasper Van der Jeugt
607b1d7d63 sanitize function for DirectedGraph 2011-01-11 19:55:34 +01:00
Jasper Van der Jeugt
c6710ac09a Migrate Reader → Reader, State in Run module 2011-01-08 10:31:08 +01:00
Jasper Van der Jeugt
df8e221aef Fully qualified errors 2011-01-08 09:09:11 +01:00
Jasper Van der Jeugt
d0939102bf Metacompilers now work, todo: cleanup 2011-01-07 19:17:14 +01:00
Jasper Van der Jeugt
ddb8ea2193 Metacompilers now work, except for "modified" 2011-01-07 15:44:11 +01:00
Jasper Van der Jeugt
c443d5c116 Binary/Typeable/Writable instances for Tags 2011-01-07 15:12:22 +01:00
Jasper Van der Jeugt
672ecb077c Add fromCapture(s) 2011-01-07 15:09:55 +01:00
Jasper Van der Jeugt
7bf3450caf Run metacompilers instead of ignoring them 2011-01-07 14:48:47 +01:00
Jasper Van der Jeugt
1bf95c0028 Rank N compilers (compiler in compilers in...) 2011-01-07 14:40:33 +01:00
Jasper Van der Jeugt
f1e726be69 Renaming for consistency 2011-01-07 14:34:31 +01:00
Jasper Van der Jeugt
9e88440102 Restructure hakyllWith for metacompilers 2011-01-07 14:22:15 +01:00
Jasper Van der Jeugt
c7d63835f8 Move hakyllWith to hakyll monad 2011-01-07 12:47:02 +01:00
Jasper Van der Jeugt
11d7031da3 Add compilers producing compilers 2011-01-07 12:12:13 +01:00
Jasper Van der Jeugt
70fa0c2ff1 Add waitFor directive 2011-01-07 10:14:36 +01:00
Jasper Van der Jeugt
664648c5f9 Proof-of-concept tag module 2011-01-05 13:12:50 +01:00
Jasper Van der Jeugt
77c7d8dc17 Add in-memory map to store
This allows us to get rid of the dependency
lookup map and use one uniform cache/lookup.
2011-01-04 13:09:45 +01:00
Jasper Van der Jeugt
0969fe41c7 Add relativize URL's functionality 2011-01-04 11:13:08 +01:00
Jasper Van der Jeugt
e395b0af9a Store result automatically using runCompiler 2011-01-03 23:24:22 +01:00
Jasper Van der Jeugt
2ceb5f59d0 Avoid looking at up-to-date items at all 2011-01-03 22:13:04 +01:00
Jasper Van der Jeugt
40c75767d4 Store modified flags in a map
This allows reuse for actual dependency checking
(to be implemented later).
2011-01-03 11:33:59 +01:00
Jasper Van der Jeugt
220e4b484c Escaped carries allong it's escaped value 2011-01-02 12:49:43 +01:00
Jasper Van der Jeugt
2d1225104c Add toUrl, move & optimize replaceAll a bit 2011-01-02 10:22:49 +01:00
Jasper Van der Jeugt
e1aa960099 Add Hakyll.Web module 2010-12-31 16:15:57 +01:00
Jasper Van der Jeugt
e54834f444 Check modification only once 2010-12-31 15:15:35 +01:00
Jasper Van der Jeugt
8bb4ea5c83 Add resourceExists function 2010-12-31 13:28:31 +01:00
Jasper Van der Jeugt
5b67f20eab Prototype of the 'cached' arrow transformer 2010-12-31 12:38:12 +01:00
Jasper Van der Jeugt
70c7363b8c Add wasModified method 2010-12-31 12:18:33 +01:00
Jasper Van der Jeugt
7b84181dab Add $category field 2010-12-31 09:04:02 +01:00
Jasper Van der Jeugt
15f2cee5e4 Backport CompressCss module 2010-12-30 23:07:07 +01:00
Jasper Van der Jeugt
2b5b27e2e7 Add $title, $root and $url fields 2010-12-30 21:42:23 +01:00
Jasper Van der Jeugt
686de03ebf Add Template module 2010-12-30 21:19:19 +01:00
Jasper Van der Jeugt
e49cd3b4b0 Cleanup, split up page module 2010-12-30 21:18:55 +01:00
Jasper Van der Jeugt
da12825066 Compiler → {Compiler, Compiler.Internal} 2010-12-30 17:47:31 +01:00
Jasper Van der Jeugt
227b186bf2 Remove compileFromString function 2010-12-30 15:57:36 +01:00
Jasper Van der Jeugt
86fafe6e61 Add CopyFile newtype 2010-12-30 13:49:58 +01:00
Jasper Van der Jeugt
687c17c6bb Cleanup arrow code 2010-12-30 10:11:37 +01:00
Jasper Van der Jeugt
1c1133dfd6 More arrows 2010-12-30 10:02:25 +01:00
Jasper Van der Jeugt
6268e4a4fe Experimental arrow-based approach 2010-12-29 22:59:38 +01:00
Jasper Van der Jeugt
bf31c55c99 Add requireAll function 2010-12-29 15:33:22 +01:00
Jasper Van der Jeugt
27ff2eef89 Use Typeable instead of ADT 2010-12-28 11:12:45 +01:00
Jasper Van der Jeugt
6ffb83d46f Binary instance for Page 2010-12-27 18:46:23 +01:00
Jasper Van der Jeugt
a1043203bb Add a snapshot state to target monad 2010-12-27 18:38:46 +01:00
Jasper Van der Jeugt
e07014b5bd Targets have access to the store 2010-12-27 17:40:55 +01:00
Jasper Van der Jeugt
bda268273b Make pandoc functions work on pages by default 2010-12-27 11:14:04 +01:00
Jasper Van der Jeugt
d25dcb698e Fix typo in comments 2010-12-27 10:12:19 +01:00
Jasper Van der Jeugt
c1d16cdab3 Add Page parser 2010-12-27 10:07:31 +01:00
Jasper Van der Jeugt
4981cfbb7f Add string utility module 2010-12-27 10:07:07 +01:00
Jasper Van der Jeugt
e6c758e6dc Add Page module 2010-12-26 19:03:03 +01:00
Jasper Van der Jeugt
bc92f7fea5 Add resourceDigest function 2010-12-26 16:22:05 +01:00
Jasper Van der Jeugt
95f59be5a0 Simple key-value store 2010-12-26 16:12:57 +01:00
Jasper Van der Jeugt
b30123f93c Add resourceLazyByteString function 2010-12-26 16:12:48 +01:00
Jasper Van der Jeugt
515968716f Add pandoc bindings 2010-12-26 13:22:25 +01:00
Jasper Van der Jeugt
79ce331869 Consistent naming: ReStructuredText → Rst 2010-12-26 13:21:55 +01:00
Jasper Van der Jeugt
9939708c66 Consistent naming: target vs compiler 2010-12-26 13:21:27 +01:00
Jasper Van der Jeugt
bd5f6ca579 UnknownFileType → Binary 2010-12-26 12:32:24 +01:00
Jasper Van der Jeugt
ab7c9bef64 Add FileType module 2010-12-26 12:31:36 +01:00
Jasper Van der Jeugt
7f4b5e542c Add getIdentifier function in target 2010-12-26 12:31:15 +01:00
Jasper Van der Jeugt
36ec2c15b8 Add targetFromString compiler function 2010-12-26 11:57:42 +01:00
Jasper Van der Jeugt
427a740038 Ignore unexisting files in obsolete check 2010-12-26 11:57:19 +01:00
Jasper Van der Jeugt
53d179a7da Add file utility module 2010-12-26 09:38:40 +01:00
Jasper Van der Jeugt
5bc8028696 Add DirectedGraph to DOT module 2010-12-26 00:09:35 +01:00
Jasper Van der Jeugt
ec85de418b Prototype Run module 2010-12-25 22:02:20 +01:00
Jasper Van der Jeugt
0cd7716dae Add writable class 2010-12-25 20:18:36 +01:00
Jasper Van der Jeugt
6b6a78ea41 Add rules module 2010-12-25 19:37:21 +01:00
Jasper Van der Jeugt
c372fc47da Add Compiler module 2010-12-25 18:15:44 +01:00
Jasper Van der Jeugt
12c446785c Add target module 2010-12-24 16:55:20 +01:00
Jasper Van der Jeugt
4b7c42d644 Add resource provider modules 2010-12-24 08:42:05 +01:00
Jasper Van der Jeugt
4bdd93b331 Add Route code 2010-12-23 19:20:05 +01:00
Jasper Van der Jeugt
07ca8954a5 Minor change to pattern documentation 2010-12-23 18:24:19 +01:00
Jasper Van der Jeugt
10328b890c Document the pattern module a bit 2010-12-23 18:22:16 +01:00
Jasper Van der Jeugt
3fdf8ab204 Add identifier/pattern modules 2010-12-23 17:19:21 +01:00
Jasper Van der Jeugt
d1d28b9349 Add tests for the directed graph modules 2010-12-23 14:51:38 +01:00
Jasper Van der Jeugt
ad6712121f Add directed graph modules 2010-12-23 14:31:45 +01:00
Jasper Van der Jeugt
9b63052148 Remove old code for now 2010-12-23 14:31:30 +01:00
Jasper Van der Jeugt
fef1172c77 ContextManipulations → Metadata 2010-12-13 22:02:54 +01:00
Jasper Van der Jeugt
0da0dd469d Experimental changes for a re-write 2010-12-13 20:41:26 +01:00
Jasper Van der Jeugt
8da7d5b653 One implementation for toDestination and toCache 2010-11-15 16:00:28 +01:00
Jasper Van der Jeugt
1b5a0220f9 Add default title 2010-11-14 22:48:48 +01:00
Jasper Van der Jeugt
50459dcad8 Add renderMissingValue function 2010-11-12 09:10:03 +01:00
Jasper Van der Jeugt
46de95a1b0 Fix compile error 2010-10-28 13:41:29 +02:00
Jasper Van der Jeugt
6b44cef123 Add a takeBody function 2010-10-28 13:32:34 +02:00
Jasper Van der Jeugt
1f169dd0a0 Arrow version of addField 2010-10-28 01:29:13 +02:00
Jasper Van der Jeugt
cb1fec60f5 Add an addField function 2010-10-28 01:13:37 +02:00
Jasper Van der Jeugt
9d99eda221 Provide an arrow-based interface to Pandoc module 2010-10-04 17:34:32 +02:00
Jasper Van der Jeugt
111828d282 Provide simple renderActionWith function 2010-10-04 17:14:20 +02:00
Jasper Van der Jeugt
371bc0347b Clean up yesterday's work, fix tests 2010-10-04 14:14:41 +02:00
Jasper Van der Jeugt
c73c09270d Clean up modules a bit 2010-10-04 01:27:03 +02:00
Jasper Van der Jeugt
08c4d74a2f Separate pandoc from page reading, general caching 2010-10-04 01:20:17 +02:00
Jasper Van der Jeugt
cd24697158 Disable partial functions (thanks chrisdone) 2010-10-02 11:54:47 +02:00
Jasper Van der Jeugt
b6d4bc5d0e Add concurrency features 2010-10-01 19:22:59 +02:00
Jasper Van der Jeugt
4be1717297 Document withTagMap function 2010-10-01 18:57:09 +02:00
Jasper Van der Jeugt
9b9020f203 Treat .page extensions as markdown 2010-10-01 17:17:41 +02:00
Jasper Van der Jeugt
e52c5d8b2f Fix warnings 2010-09-27 16:05:45 +02:00
Jasper Van der Jeugt
3631e42f49 Migrate to BlazeHtml for HTML generation 2010-09-23 11:59:50 +02:00
Jasper Van der Jeugt
ae7cc9f324 Export all modules in Text.Hakyll, for the lazy 2010-09-23 10:36:37 +02:00
Jasper Van der Jeugt
d0a9d01062 Readable errors when hamlet parsing fails 2010-08-06 12:50:59 +02:00
Jasper Van der Jeugt
a09a27027a Fix link bug in paginate module 2010-08-06 11:21:45 +02:00
Jasper Van der Jeugt
acbdf6c329 Refactored Template data structure. 2010-08-06 10:52:03 +02:00
Jasper Van der Jeugt
69ca4255f0 Hamlet support (experimental) 2010-08-05 18:41:15 +02:00
Jasper Van der Jeugt
2c8d76cd97 Add a simple static configuration 2010-08-02 13:48:08 +02:00
Jasper Van der Jeugt
2066be0621 Add inHakyllDirectory function and test cases 2010-08-02 12:59:22 +02:00
Jasper Van der Jeugt
1af0421efe Option to choose between preview modes 2010-07-31 12:55:41 +02:00
Jasper Van der Jeugt
6059de5401 User can supply custom time locale for renderDate 2010-06-22 11:53:15 +02:00
Jasper Van der Jeugt
bb9ea6f122 Add newtype for Context 2010-06-20 10:45:17 +02:00
Jasper Van der Jeugt
2282e78e9c Allow markdown/tex/... in templates 2010-06-18 00:13:10 +02:00
Jasper Van der Jeugt
cd6822ff8b Force setting of absoluteUrl with custom config. 2010-06-17 18:08:46 +02:00
Jasper Van der Jeugt
e3253e79e3 Rewrote preview mode.
Preview mode is now based on server requests
instead of time intervals. This should solve
some problems out there.
2010-06-16 18:00:09 +02:00
Jasper Van der Jeugt
b1d4f48d24 Server allows URL's containing '?'. 2010-05-25 19:13:55 +02:00
Jasper Van der Jeugt
eac0473a0b Typo fix by masak. 2010-05-25 18:00:30 +02:00
Jasper Van der Jeugt
c31f22c79a Add possibility to change URL through Arrows. 2010-05-22 11:07:28 +02:00
Jasper Van der Jeugt
06aa9fbc7b Expose pandoc options (patch by JD Marble). 2010-05-20 23:54:38 +02:00
Jasper Van der Jeugt
ff57c2f660 Added fix to allow dashes in pages.
Hakyll splits pages into metadata sections by lines starting
with `---`. Because of this, thing like

    Header
    ------

    Some text.

will not parse. This commit fixes this, by fixating the length
of the the dash pattern -- all dashed lines should contain the
same number of dashes. Therefor, you can use something like

    ---
    title: Foobar
    ---

    Header
    ------

    Some text.
2010-04-04 15:08:59 +02:00
Jasper Van der Jeugt
057b7fa485 Moved Arbitrary Template instance to tests.
This way, the code for Text.Hakyll.Internal.Template is
cleaner, and our library does not depend on QuickCheck
anymore.
2010-04-01 12:27:27 +02:00
Jasper Van der Jeugt
193dc6d3d8 Updated tutorial about categoryblog. 2010-03-31 13:51:28 +02:00
Jasper Van der Jeugt
0be1f8afbf Fixed error causing post lists to be reversed.
This error was caused when rendering post lists produced by
readTagMap. I also gave some shorter implementations for functions
in Text.Hakyll.HakyllAction.
2010-03-27 16:40:45 +01:00
Jasper Van der Jeugt
509f919997 Fixed error when rendering literate Haskell.
Literate haskell was not listed in the pattern matching on
FileType's, so it gave an error that the file type could not be
rendered. This was quickly resolved by adding it to the list.
2010-03-26 16:49:12 +01:00
Jasper Van der Jeugt
c9e3458083 Added .txt support, tests update.
- Pure text files are now supported.
- We now hide the Internal modules.
- Tests should be run through ghci.
- Added testing of page reading.
2010-03-26 14:10:10 +01:00
Jasper Van der Jeugt
47586163d2 Added renderBody function. 2010-03-14 22:19:07 +01:00
Jasper Van der Jeugt
9acf269cea Changes String to FilePath on appropriate places. 2010-03-12 16:46:27 +01:00
Jasper Van der Jeugt
fa88a0e922 Started writing Hakyll 2.x tutorials. Updated brochure example. 2010-03-11 18:03:48 +01:00
Jasper Van der Jeugt
01d8c4b330 Updated some comments. 2010-03-11 12:25:49 +01:00
Jasper Van der Jeugt
a2c15932b7 Gave some functions better (more appropriate) names. 2010-03-11 12:10:55 +01:00
Jasper Van der Jeugt
d25b0b6834 Moved some modules around for fun and profit. 2010-03-11 11:03:40 +01:00
Jasper Van der Jeugt
35e8246484 Merged Text.Hakyll.Internal.Render into Text.Hakyll.Render. 2010-03-10 19:47:53 +01:00
Jasper Van der Jeugt
23f9d1e0cf Removed xxxWith functions, they can be implemented more elegant using Arrows anyway. 2010-03-10 16:02:17 +01:00
Jasper Van der Jeugt
fa28eac8a3 Renamed RenderAction to HakyllAction. 2010-03-10 13:35:53 +01:00
Jasper Van der Jeugt
24959fd68b Fixed some minor issues. 2010-03-09 18:47:35 +01:00
Jasper Van der Jeugt
0204dd678a Added Arrow implementation for RenderAction. 2010-03-09 18:26:53 +01:00
Jasper Van der Jeugt
4756b82329 Documented Text.Hakyll.Feed. 2010-03-08 22:54:41 +01:00
Jasper Van der Jeugt
45459c3a20 Added renderAtom, feeds now validate. 2010-03-08 21:42:56 +01:00
Jasper Van der Jeugt
64b640f97d Added RSS date for items. 2010-03-08 19:04:53 +01:00
Jasper Van der Jeugt
d023eb5bf6 Added Text.Hakyll.Internal.FileType module. 2010-03-08 18:44:12 +01:00
Jasper Van der Jeugt
94400da4a0 Documented Text.Hakyll.RenderAction. 2010-03-08 09:10:09 +01:00
Jasper Van der Jeugt
7cbeb1739f createCustomPage can automatically infer dependencies. 2010-03-07 23:18:30 +01:00
Jasper Van der Jeugt
89d6cb26bb Documentation++, added copyValue function. 2010-03-06 18:11:06 +01:00
Jasper Van der Jeugt
1736710b9e Added RSS module. 2010-03-06 15:39:45 +01:00
Jasper Van der Jeugt
f47fd1a967 Added rebuild mode. 2010-03-06 10:25:26 +01:00
Jasper Van der Jeugt
7ae56f7d4b Fixed bug with tag rendering. 2010-03-05 19:02:49 +01:00
Jasper Van der Jeugt
65b1a9cf00 Fixed bug in date rendering. 2010-03-05 19:02:25 +01:00
Jasper Van der Jeugt
f1b1e179aa Reintegrated Tag module. 2010-03-05 18:50:33 +01:00
Jasper Van der Jeugt
034c659b91 Aliased RenderAction () Context to Renderable, custompages now have correct dependencies. 2010-03-05 16:18:52 +01:00
Jasper Van der Jeugt
45eb74655f Removed deprecated code. 2010-03-05 12:48:52 +01:00
Jasper Van der Jeugt
664111c001 Simplified css and static code. 2010-03-05 12:22:09 +01:00
Jasper Van der Jeugt
cd51ba5789 Removes superfluous functions, added some logging. 2010-03-05 12:02:54 +01:00
Jasper Van der Jeugt
5d577bb8ef static and css now both use arrows. 2010-03-04 23:52:52 +01:00
Jasper Van der Jeugt
66ad9ce7f2 Again an url mistake, now the simpleblog works too. 2010-03-04 22:45:50 +01:00
Jasper Van der Jeugt
6b4b8064cd Fixed url inclusion bug. Brochure example works now. 2010-03-04 22:37:50 +01:00
Jasper Van der Jeugt
11996929aa Got it to compile again, disabled Tags for now. 2010-03-04 22:09:41 +01:00
Jasper Van der Jeugt
192c4a16ea Work on migration to arrows. Compulation fails.
- Update readPage to produce a Hakyll Context.
- Update createPagePath to produce a Context Arrow.
- Move Page to internal modules.
2010-03-04 09:50:25 +01:00
Jasper Van der Jeugt
76ebcf97b4 First careful transition from data to arrows. It compiles, but that's about it. 2010-03-04 00:02:37 +01:00
Jasper Van der Jeugt
e4f09b0a05 Clean up pagination, disable first/last link when on first/last page. 2010-03-01 18:50:02 +01:00
Jasper Van der Jeugt
eaf0c230fb Added simple pagination (unstable). 2010-03-01 18:17:12 +01:00
Jasper Van der Jeugt
9576700a77 Some more documentation. 2010-02-27 17:35:39 +01:00
Jasper Van der Jeugt
ea1bb41726 Readability improvements. 2010-02-27 17:32:27 +01:00
Jasper Van der Jeugt
9591142755 Cleanup with hlint. 2010-02-27 17:28:03 +01:00
Jasper Van der Jeugt
d980dd48ba Minor tweaks on site, made PagePath a newtype. 2010-02-27 17:24:28 +01:00
Jasper Van der Jeugt
c9d4624a42 Updated tests. 2010-02-16 19:18:53 +01:00
Jasper Van der Jeugt
87e7e99a8c Better lhs writing. 2010-02-16 17:24:32 +01:00
Jasper Van der Jeugt
6611e86ac5 Added autocompile mode to replace preview mode. 2010-02-12 12:01:23 +01:00
Jasper Van der Jeugt
732fdc9894 Fixed indexUrl error with html pages. 2010-02-02 14:07:24 +01:00
Jasper Van der Jeugt
c4b1fd5900 Added indexUrl option - experimental.
This option will render, for example, about.html to about/index.html. This way, url's will generally look more pretty.
2010-02-01 16:43:26 +01:00
Jasper Van der Jeugt
fbd9ff95bd A little more documentation. 2010-01-31 13:40:15 +01:00
Jasper Van der Jeugt
7afabf5c09 Better naming scheme. 2010-01-31 11:19:57 +01:00
Jasper Van der Jeugt
c49cc9a046 Added a sortByBaseName function. 2010-01-29 18:36:42 +01:00
Jasper Van der Jeugt
3f5df5ea59 Some more documentation. 2010-01-28 14:55:25 +01:00
Jasper Van der Jeugt
0d2cfb08a7 Categories are more or less stable now. 2010-01-28 13:00:23 +01:00
Jasper Van der Jeugt
a600b84662 Documented Text.Hakyll.Tags. 2010-01-28 12:29:05 +01:00
Jasper Van der Jeugt
b9e843e367 Started a cleanup of Text.Hakyll.Tags. 2010-01-27 23:48:40 +01:00
Jasper Van der Jeugt
f9a4b4f6f4 Added an option for categories instead/in addition to tags. Experimental. 2010-01-27 18:52:11 +01:00
Jasper Van der Jeugt
5928459858 Added createListing, createListingWith functions.
These functions were added to have a simpler and more high-level way to do the
common createCustomPage/renderAndConcat combination to create post lists, rss
feeds, ...
2010-01-27 18:02:43 +01:00
Jasper Van der Jeugt
cf2c4ad77c Fixed typos in comments. 2010-01-27 12:42:15 +01:00
Jasper Van der Jeugt
8e78fe04f6 Made Arbitrary Page instance. 2010-01-25 15:12:20 +01:00
Jasper Van der Jeugt
fe7182d288 Added support for literate haskell files - patch by Mark Harris. 2010-01-24 19:14:16 +01:00
Jasper Van der Jeugt
d97a53b6b4 Changed test system. Wrote some test cases. 2010-01-24 19:00:49 +01:00
Jasper Van der Jeugt
42bacee41a Module cleanup. 2010-01-24 16:40:09 +01:00
Jasper Van der Jeugt
aef33d18da Added Template type (experimental). 2010-01-24 16:27:43 +01:00
Jasper Van der Jeugt
d6fbe303ae Simplified pureRenderAndConcat function. 2010-01-24 14:05:18 +01:00
Jasper Van der Jeugt
788a37cd3e Use ascending list for serializing where possible. 2010-01-24 11:55:40 +01:00
Jasper Van der Jeugt
4295de01bc Added tagMap caching.
Because the readTagMap function was currently one of the bottlenexks, this has
caused a speedup of 900% for some test cases, so yay for that.
2010-01-24 11:31:36 +01:00
Jasper Van der Jeugt
59e3c7f277 Wrote some more documentation. 2010-01-24 10:30:19 +01:00
Jasper Van der Jeugt
6c94ad7992 Documentation++. 2010-01-23 18:20:10 +01:00
Jasper Van der Jeugt
5f8ea066d6 Added changeExtension ContextManipulation. 2010-01-23 17:12:49 +01:00
Jasper Van der Jeugt
d7f04a2c6d Strictness cleanup. 2010-01-23 10:25:47 +01:00
Jasper Van der Jeugt
aaa7771809 Some more documentation. 2010-01-21 09:19:14 +01:00
Jasper Van der Jeugt
cf789c7ac6 Speedup of factor 4 by switching to the Data.Binary library for serialization. 2010-01-20 22:08:15 +01:00
Jasper Van der Jeugt
892cae9da2 Added caching again. But now the more sexy, stable and fast version. 2010-01-20 17:10:08 +01:00
Jasper Van der Jeugt
8602f23f7b Made site and cache directory configurable. Caching stubs. 2010-01-20 16:46:22 +01:00
Jasper Van der Jeugt
715387756e Made hakyll function backward-compatible. Version bump. 2010-01-19 20:42:16 +01:00
Jasper Van der Jeugt
db0eef8470 Removed debug output. 2010-01-19 16:40:30 +01:00
Jasper Van der Jeugt
68facf83ec Removed page caching.
I am removing page caching for the following reasons (in no particular order):
- It is very error-prone because the pandoc output might interfere with the
  Hakyll page layout (and thus would pages be read incorrectly).
- Timestamping is a much better method to save compilation time.
- It would also mess up Unicode sometimes.
- Hakyll is aimed at small to medium sites. This caching would not bring a huge
  speedup anyway.

Note: there still is timestamp checking!
2010-01-19 16:34:41 +01:00
Jasper Van der Jeugt
fe77089955 Made page parser a little less strict. 2010-01-19 15:50:04 +01:00
Jasper Van der Jeugt
f5a6c4974d Hakyll now passes HLint. 2010-01-19 14:08:19 +01:00
Jasper Van der Jeugt
77f9129e73 Cleaner page reading. 2010-01-19 10:08:31 +01:00
Jasper Van der Jeugt
7af4014e3f [awesome feature] Added combining of Renderables. 2010-01-19 09:53:52 +01:00
Jasper Van der Jeugt
da31280dd7 Unicode is a bitch.
I am leaving a character in one of the examples, so we would notice it
directly, should we ever break it again.
2010-01-19 09:15:39 +01:00
Sebastian Schwarz
271e7a386d Enable Pandoc's smart typography parsing.
Something like: -- to – and ... to …
2010-01-19 00:18:55 +01:00
Jasper Van der Jeugt
417ccaccfc Fixed unicode handling in server. 2010-01-18 22:16:31 +01:00
Jasper Van der Jeugt
31476dd6b8 Added basic support for metadata sections. 2010-01-18 21:33:38 +01:00
Jasper Van der Jeugt
597116a87d Added liftIO. 2010-01-18 19:32:06 +01:00
Jasper Van der Jeugt
06408148ee Merge branch 'master' of git://github.com/seschwar/Hakyll into experimental
Conflicts:
	hakyll.cabal
	src/Text/Hakyll/Page.hs
	src/Text/Hakyll/Render/Internal.hs
2010-01-18 19:30:43 +01:00
Sebastian Schwarz
e01531bd75 Added reStructuredText support.
Why not?  Quickly tested.  Seems to work fine.
2010-01-18 18:00:39 +01:00
Sebastian Schwarz
47fae0ed2a Added support for other common Markdown file extensions. 2010-01-18 17:51:28 +01:00
Jasper Van der Jeugt
673ed68b8f Added UTF8 where nessecary. 2010-01-18 09:11:43 +01:00
Jasper Van der Jeugt
8b668b3940 Fixed bug in section metadata writing. 2010-01-18 08:17:41 +01:00
Jasper Van der Jeugt
10dd6dafc0 Added section metadata writing. 2010-01-17 21:42:52 +01:00
Jasper Van der Jeugt
fb381ddfd3 Changed to tibbe's style guide for imports. 2010-01-17 14:43:41 +01:00
Jasper Van der Jeugt
aa44d6c0da Documentation++. 2010-01-17 12:37:55 +01:00
Jasper Van der Jeugt
0037344424 Use Text.Hakyll.Render.Internal to render tag cloud. 2010-01-17 12:14:54 +01:00
Jasper Van der Jeugt
6bacab4f22 Fixed warnings when compiling with the new GHC 6.12.1. 2010-01-17 09:57:32 +01:00
Jasper Van der Jeugt
129ab7f31a Minor code cleanup. 2010-01-15 15:41:42 +01:00
Jasper Van der Jeugt
62330ceae5 Moved some more functions from the IO monad to the Hakyll monad stack. 2010-01-15 09:47:07 +01:00
Jasper Van der Jeugt
f3c83030b9 Parallel version bump.
Conflicts:

	src/Text/Hakyll/Page.hs
2010-01-14 21:01:18 +01:00
Jasper Van der Jeugt
a180016488 Parallel version bump. 2010-01-14 20:59:31 +01:00
Jasper Van der Jeugt
4bc34b8a98 Added ReaderT to our stack. 2010-01-14 20:46:08 +01:00
Jasper Van der Jeugt
2851153eb6 User should always specify task. 2010-01-12 16:04:51 +01:00
Jasper Van der Jeugt
a26f84dab5 Added pure renderAndConcat function. 2010-01-12 14:48:16 +01:00
Jasper Van der Jeugt
ecd00b386e Added pure renderChain function. 2010-01-12 13:09:50 +01:00
Jasper Van der Jeugt
ef7ccb1514 Added pure render function. 2010-01-12 12:26:07 +01:00
Jasper Van der Jeugt
36b0b72b63 Fixed bug in page loading. 2010-01-12 08:48:11 +01:00
Jasper Van der Jeugt
0152a15b1e Some more strictness. 2010-01-12 08:40:44 +01:00
Jasper Van der Jeugt
53d9ba2193 Efficient file size. 2010-01-11 18:53:36 +01:00
Jasper Van der Jeugt
dc60463bbc Threw away bytestring. Simplicity++. 2010-01-11 14:07:00 +01:00
Jasper Van der Jeugt
dae0258a62 Readability++. 2010-01-11 13:56:32 +01:00
Jasper Van der Jeugt
7a765f29a2 Added $root in filepaths. 2010-01-11 10:02:33 +01:00
Jasper Van der Jeugt
e5202ce852 Added some strictness. 2010-01-11 09:19:23 +01:00
Jasper Van der Jeugt
8548888d1c Fixed $$ escaping. 2010-01-11 08:55:13 +01:00
Jasper Van der Jeugt
15733a1a1a Fixed bug in toURL. 2010-01-10 19:39:24 +01:00
Jasper Van der Jeugt
6bcad2701a Added custom Template system. Highly experimental. 2010-01-10 19:17:18 +01:00
Jasper Van der Jeugt
6a2e6998b1 Worked on substitution. 2010-01-10 13:26:57 +01:00
Jasper Van der Jeugt
bc71d54ab7 Started working on relative-url branch. 2010-01-10 12:16:47 +01:00
Jasper Van der Jeugt
73f6b1ab8c Some changes to the regex interface, and version bump. 2010-01-09 21:40:31 +01:00
Jasper Van der Jeugt
699bd0011e Added tagblog example (tutorial coming up). 2010-01-08 12:41:58 +01:00
Jasper Van der Jeugt
b403d35b08 Added renderTagLinks function. 2010-01-08 12:04:24 +01:00
Jasper Van der Jeugt
547f98dff0 Added link function. 2010-01-08 09:42:33 +01:00
Jasper Van der Jeugt
d29e4157f1 Added an havingExtension filter because it's handy. 2010-01-05 11:11:02 +01:00
Jasper Van der Jeugt
1fdffc6a19 Added context manipulating functions and associated render functions. Also, version bump. 2010-01-03 12:21:15 +01:00
Jasper Van der Jeugt
dea9cb0698 Logging is now dealt with in a separate thread. 2009-12-30 12:25:20 +01:00
Jasper Van der Jeugt
01b177e086 Fixed typo. Making another attempt to have it built on hackage... 2009-12-29 15:11:20 +01:00
Jasper Van der Jeugt
5f9014cec2 Expplicit use of Context, in an attempt to solve build errors on hackage. 2009-12-29 11:21:20 +01:00
Jasper Van der Jeugt
4561887cf4 Find index.html in every directory. 2009-12-28 13:46:43 +01:00
Jasper Van der Jeugt
f4f1d86ca8 Added preview command. 2009-12-28 11:23:31 +01:00
Jasper Van der Jeugt
d47227ddbb Made document root configurable. 2009-12-27 20:33:18 +01:00
Jasper Van der Jeugt
849b49aa53 Friendlier output. 2009-12-27 19:45:09 +01:00
Jasper Van der Jeugt
3221ff61fb Easier commands. 2009-12-27 19:12:34 +01:00
Jasper Van der Jeugt
b6c8198796 More explicit imports. 2009-12-27 18:45:58 +01:00
Jasper Van der Jeugt
14f86bab3e Documented SimpleServer, and added a ReaderT stack for configuration. 2009-12-27 18:04:11 +01:00
Jasper Van der Jeugt
8590e0de81 Not Found is 404, not 400. 2009-12-27 17:14:16 +01:00
Jasper Van der Jeugt
ca2e161dd9 Readable error messages. 2009-12-27 14:20:01 +01:00
Jasper Van der Jeugt
d8c3335366 Removed some strange characters from the source file (I don't even know how they got there). 2009-12-27 13:27:24 +01:00
Jasper Van der Jeugt
586998c911 Added a simple HTTP server for testing purposes. 2009-12-27 13:25:02 +01:00
Jasper Van der Jeugt
9608a9bde5 Added main method/module. 2009-12-27 00:01:35 +01:00
Jasper Van der Jeugt
2648115e87 Added some tag cloud code. 2009-12-26 13:47:40 +01:00
Jasper Van der Jeugt
beeac9b101 Added module to deal with tags. 2009-12-26 11:53:25 +01:00
Jasper Van der Jeugt
c790065b46 Added original page path to Page records. 2009-12-26 09:58:15 +01:00
Jasper Van der Jeugt
58ad6a9d38 Added getValue function. 2009-12-25 23:49:15 +01:00
Jasper Van der Jeugt
637ab61284 Added copyValueWith. 2009-12-25 23:06:01 +01:00