Commit graph

247 commits

Author SHA1 Message Date
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
Jasper Van der Jeugt
a532352858 Some more tests. Fixed split function. 2009-12-25 12:06:11 +01:00
Jasper Van der Jeugt
4fa472250e Added some tests. 2009-12-25 11:55:03 +01:00
Jasper Van der Jeugt
ce2cef4350 Slightly cleaner split function. 2009-12-22 10:14:12 +01:00
Jasper Van der Jeugt
137bf68805 Some more CSS compression. 2009-12-20 10:02:20 +01:00
Jasper Van der Jeugt
5985951bed Fixed bug in css rendering. 2009-12-20 10:02:02 +01:00
Jasper Van der Jeugt
ef4c166a1c Changed to a more general directory command, and added css command. 2009-12-18 19:38:25 +01:00
Jasper Van der Jeugt
c1d93ebabf Worked on CompressCSS module. 2009-12-18 19:25:28 +01:00
Jasper Van der Jeugt
01009d0ce3 Started a CompressCss module. 2009-12-18 16:31:56 +01:00
Jasper Van der Jeugt
221c029dad Splitted Text.Hakyll.Util into Text.Hakyll.File and Text.Hakyll.Util. 2009-12-17 20:08:42 +01:00
Jasper Van der Jeugt
6bbf514c77 Added a stripHtml function. 2009-12-17 16:42:59 +01:00
Jasper Van der Jeugt
a18789a6fb Moved writePage to Text.Hakyll.Page. 2009-12-13 10:15:21 +01:00
Jasper Van der Jeugt
5d64ff7d5c Removed some deprecated functions. 2009-12-13 10:09:10 +01:00
Jasper Van der Jeugt
0bbb99ed2f Documented Text.Hakyll.Renderables. 2009-12-12 15:54:43 +01:00
Jasper Van der Jeugt
30deeb3435 Static files now also make use of cache. 2009-12-12 15:47:51 +01:00
Jasper Van der Jeugt
0638efe151 Documented Text.Hakyll.Render and Text.Hakyll.Util. 2009-12-12 15:45:56 +01:00
Jasper Van der Jeugt
e6099205d9 Wrote documentation for Text.Hakyll.Page and Text.Hakyll.Renderable. 2009-12-12 15:17:01 +01:00
Jasper Van der Jeugt
333c19d0c1 Merged CustomPage and RenderableFilePath into one file. 2009-12-12 14:48:36 +01:00
Jasper Van der Jeugt
d988921714 Added CustomPage. 2009-12-11 20:41:49 +01:00
Jasper Van der Jeugt
d83791c106 Pages should only contain ByteStrings. 2009-12-10 23:28:57 +01:00
Jasper Van der Jeugt
16f284d747 Made an abstract Renderable class. Still need some cleanup now. 2009-12-10 14:18:13 +01:00
Jasper Van der Jeugt
c630522ec0 Discovered the unless function. 2009-12-09 18:56:48 +01:00
Jasper Van der Jeugt
54305ea4b9 Added page chain rendering. 2009-12-08 13:04:45 +01:00
Jasper Van der Jeugt
453e81f746 Added basic dependency checking. 2009-12-07 20:34:45 +01:00
Jasper Van der Jeugt
35e6572f6c Added general renderAndConcat function. 2009-12-07 17:31:49 +01:00
Jasper Van der Jeugt
0d9de903a0 Forgot to export split function. 2009-12-05 13:09:43 +01:00
Jasper Van der Jeugt
08b2fe3eb4 Added simple caching. 2009-12-04 18:32:56 +01:00
Jasper Van der Jeugt
cf5aaee051 Added string splitting. 2009-12-04 15:51:07 +01:00
Jasper Van der Jeugt
d3ce014d26 Proper string trimming. 2009-12-04 15:15:32 +01:00
Jasper Van der Jeugt
cd90c29c18 Switched to ByteStrings for efficiency reasons. 2009-12-04 11:51:41 +01:00
Jasper Van der Jeugt
8cc0cb94fc Working with file handles so files get closed in time. 2009-12-04 00:15:28 +01:00
Jasper Van der Jeugt
3d21d02d65 Commented Text.Hakyll.Util. 2009-12-03 14:14:48 +01:00
Jasper Van der Jeugt
b7e01c4ca4 Documented functions in Text.Hakyll.Page. 2009-12-03 11:08:55 +01:00
Jasper Van der Jeugt
1db2e00bbb Fixed some more issues. 2009-12-02 16:23:21 +01:00
Jasper Van der Jeugt
f716440837 Better module definitions. 2009-12-02 14:34:50 +01:00
Jasper Van der Jeugt
36e4bf881b Initial commit. 2009-12-02 13:49:42 +01:00