Commit graph

1248 commits

Author SHA1 Message Date
Simonas Kazlauskas
128f10deb8 Properly implement protocol skipping in checker
Network.HTTP can only check if http:// and https:// links resolve,
however there is much more scheme names than just `mail:`, `http://` and
`https://`.
They would be handed off to internal URI checker and would fail.
2013-04-01 15:10:46 +03:00
Simonas Kazlauskas
259190e30b Refine code
This patch includes several smaller changes, namely:
1. We don't use result of `update` function and likely never will, so
   don't bother generating it.
2. Rename watch function to better reflect what it does.
3. Never exit preview server in case of failed update.
2013-03-31 14:47:47 +03:00
Simonas Kazlauskas
bcc0ef828e Prefer relative directories instead of absolute
This allows us to fully utilise shouldIgnoreFile
2013-03-30 18:39:02 +02:00
Simonas Kazlauskas
7677bb4a77 Use shouldIgnoreFile 2013-03-30 18:07:16 +02:00
Simonas Kazlauskas
fdfbf3dd34 Run server in main thread 2013-03-30 17:48:36 +02:00
Simonas Kazlauskas
42cdd649db Migrating from polling to notification: First shot
Using system file notification APIs it is much more efficient than
polling files every second.
2013-03-30 16:28:23 +02:00
Jasper Van der Jeugt
bf496c2f55 We'll do it ourselves 2013-03-30 11:31:14 +01:00
Jasper Van der Jeugt
393a08594d Bump bytestring dependency for NFData instance 2013-03-30 11:23:45 +01:00
Jasper Van der Jeugt
4052712f9a Add dannysu.com and meta.plasm.us to examples 2013-03-30 11:08:20 +01:00
Jasper Van der Jeugt
5d7e252d27 UnixFilter improvements
Closes #128
2013-03-30 10:58:02 +01:00
Jasper Van der Jeugt
dbffc5ef10 Check for mailto: URLs
Closes #127
2013-03-27 14:02:56 +01:00
Jasper Van der Jeugt
e552896338 Merge pull request #125 from samueltardieu/deploy-in-haskell
Allow overriding the `deploy` command with Haskell code
2013-03-26 02:08:34 -07:00
Samuel Tardieu
543cba90f6 Allow overriding the deploy command with Haskell code
By overriding `deploySite` with a `Configuration -> IO ()` code,
the user can execute Haskell code to deploy the site rather than
shell code.

The default behaviour honors the `deployCommand` configuration
field and is backward compatible.
2013-03-24 21:52:21 +01:00
Jasper Van der Jeugt
6c8fda2c00 Fix issue in Compiler Alternative instance 2013-03-24 19:21:33 +01:00
Jasper Van der Jeugt
cce87f08e5 Merge pull request #123 from simukis/utc-update
Support timezones
2013-03-16 13:52:21 -07:00
Jasper Van der Jeugt
b287c8281c Merge pull request #122 from simukis/chronological-update
chronological docs update
2013-03-16 13:15:04 -07:00
Simonas Kazlauskas
cacc7a4f18 Support timezones as well 2013-03-16 13:02:41 +02:00
Simonas Kazlauskas
0c2b429ae0 renderDateField does not exist 2013-03-16 13:01:17 +02:00
Simonas Kazlauskas
4a3aac547a chronological docs update
`chronological` now respects metadata too and uses same method as
dateField to get date for sorting.
2013-03-16 12:53:54 +02:00
Jasper Van der Jeugt
a72906095c Update recentFirst usage in tutorial 5
Closes #120
2013-03-13 20:27:45 +01:00
Jasper Van der Jeugt
d840363bf0 Merge remote-tracking branch 'piyush-kurur/master'
Conflicts:
	hakyll.cabal
2013-03-11 15:53:00 +01:00
Jasper Van der Jeugt
5c053d4c71 Add a section on the UTF-8 stuff in the faq 2013-03-11 11:47:54 +01:00
Jasper Van der Jeugt
874a86a081 Version bump (4.2.1.2) 2013-03-10 10:51:55 +01:00
Jasper Van der Jeugt
bb4a34a2cb Merge pull request #118 from bergmark/master
allow pandoc 1.11
2013-03-10 01:51:24 -08:00
Adam Bergmark
9d137adda7 allow pandoc 1.11 2013-03-10 03:23:24 +01:00
Jasper Van der Jeugt
434922b69f Add missing modules for tests
Patch by Sergei Trofimovich
2013-03-09 22:26:18 +01:00
Jasper Van der Jeugt
9ba4b0e920 Version bump (4.2.1.1) 2013-03-09 17:56:54 +01:00
Jasper Van der Jeugt
5241e87f16 Make http-conduit dependency optional 2013-03-09 17:54:08 +01:00
Jasper Van der Jeugt
df1fb66888 Version bump (4.2.1.0) 2013-03-07 18:51:06 +01:00
Jasper Van der Jeugt
9b305229be Use resourceFilePath for copyFileCompiler
Closes #117
2013-03-07 18:48:11 +01:00
Jasper Van der Jeugt
ca49489110 Add test case to confirm #117 2013-03-07 18:41:00 +01:00
Piyush P Kurur
d6f6657c28 refactored the Default instance of Configuration 2013-03-07 18:04:21 +05:30
Piyush P Kurur
7fc2f677d9 fixing the coding style 2013-03-07 17:56:56 +05:30
Piyush P Kurur
1c50baff7a fixing the dependency on data.default
1. Added it to the dependency of hakyll-tests
2. Bumped the upper bound to < 0.6
2013-03-07 17:38:49 +05:30
Jasper Van der Jeugt
3cd43de06d Forgot to add date to release info 2013-03-07 12:27:04 +01:00
Piyush P Kurur
439847eb6f added a default instance for Configuration 2013-03-07 16:46:17 +05:30
Jasper Van der Jeugt
5cbb4ba75c Version bump (4.2.0.0) 2013-03-07 11:41:28 +01:00
Jasper Van der Jeugt
a48b53c385 Add utility getMetadataField 2013-03-07 11:18:34 +01:00
Jasper Van der Jeugt
be7a5e6afd Add yannesposito.com to examples 2013-03-05 12:53:15 +01:00
Jasper Van der Jeugt
9bd35cd755 Add makePatternDependency 2013-03-05 12:51:27 +01:00
Jasper Van der Jeugt
3b9b11c636 Fix broken test case for #115 2013-02-26 19:24:54 +01:00
Jasper Van der Jeugt
d993ebce58 Add testcase for #115 2013-02-26 19:20:55 +01:00
Jasper Van der Jeugt
ac527bd91e Merge pull request #115 from pjones/master
Ignore initial whitespace in a continuation line for a metadata field
2013-02-26 10:05:14 -08:00
Peter Jones
4d244168a7 Ignore initial whitespace in a continuation line for a metadata field
When parsing a metadata field that spans several lines skip over the
initial whitespace on each line.  This allows alignment of metadata
fields:

    ---
    description: A long description that would look better if it
                 spanned multiple lines and was indented
    ---
2013-02-26 10:41:03 -07:00
Jasper Van der Jeugt
151c142960 Merge branch 'dev-metadata-route' 2013-02-24 11:37:24 +01:00
Jasper Van der Jeugt
5ec7f26b29 Use smart typography for tutorials 2013-02-24 10:57:18 +01:00
Jasper Van der Jeugt
b91c8be54b Update example & tutorials with new recentFirst 2013-02-24 10:55:11 +01:00
Jasper Van der Jeugt
9b603587de Fix unused imports warnings 2013-02-23 12:55:35 +01:00
Jasper Van der Jeugt
14fc440511 Merge pull request #112 from simukis/sorting
Make chronological and recentFirst to respect metadata
2013-02-23 03:52:45 -08:00
Simonas Kazlauskas
6b680c9887 Fix code style 2013-02-23 13:38:34 +02:00