Commit graph

1557 commits

Author SHA1 Message Date
chrisdotcode
5af08f807e Add flag to bind on selected host. 2014-03-24 04:50:17 -04:00
Collin J. Doering
da7ae99b12 Fix unixFilter on Windows
On windows, the 'unixFilter' function used window's 'createProcess'
function to create the external process that will filter some String
input. The problem with this is that it is unable to execute batch
stubs (eg. anything created using 'gem install ...') even if its in
$PATH. Anyways a solution to this issue is to execute the batch file
explicitly using 'cmd /c batchfile' but there is no rational way to know
where said batchfile is on the system. My solution is to detect windows
using the System.Info module and then instead of using 'proc' to create
the function, use 'shell' instead which will be able to execute
everything 'proc' can + batch files.

Inspired by: http://www.blaenkdenum.com/posts/the-switch-to-hakyll/#scss

Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
2014-03-23 17:30:29 -04:00
chrisdotcode
1a63b931a0 Update git ignore with cabal sandbox files. 2014-03-23 13:12:17 -04:00
Jasper Van der Jeugt
677a7f0f2d Merge pull request #230 from nagisa/watch-threading
Use OS threads for watch in Windows
2014-03-05 11:21:55 +01:00
Simonas Kazlauskas
6521cd7cbc Mention -threaded option in the tutorial 2014-03-04 21:23:48 +02:00
Simonas Kazlauskas
766060ed78 Use OS threads for watch on Windows 2014-03-04 21:22:35 +02:00
Jasper Van der Jeugt
ecdc1d3efc Add http://www.corentindupont.info/ to examples 2014-02-25 10:31:04 +01:00
Jasper Van der Jeugt
e3fc6cd05b Merge pull request #224 from crodjer/example-rohanjain.in
Add www.rohanjain.in as an example for Hakyll 4
2014-02-24 10:45:25 +01:00
Rohan Jain
3eba064ae6 Add www.rohanjain.in as an example for Hakyll 4
Highlight: Clean URLs, Sitemaps

Signed-off-by: Rohan Jain <crodjer@gmail.com>
2014-02-17 19:27:45 +05:30
Daniil Frumin
3ee6f28c10 Fix #223: demoteHeaders should not modify anything in the document, apart from the headers 2014-02-16 15:43:52 +04:00
Jasper Van der Jeugt
fd889c563a Merge pull request #221 from kosmikus/check-exit-code-fix
hakyll check: return exit code of 0 on success
2014-02-11 13:32:39 +01:00
Andres Loeh
21585c18f3 hakyll check: return exit code of 0 on success
The old test returns an exit code of 1 whenever the number of
errors is >= 0, which should always be the case. The fix replaces
this with a test whether the number of errors is strictly > 0.
2014-02-11 11:07:43 +01:00
Jasper Van der Jeugt
5ab9655714 Merge pull request #217 from cbcb/master
Changed command to watch from deprecated preview
2014-01-30 01:00:08 -08:00
Christian Baumhof
4b34d16f9f Changed command to watch from deprecated preview 2014-01-30 00:53:57 +01:00
Jasper Van der Jeugt
251c019e9e Don't cache pandocCompilerWithTransform, refactor 2014-01-28 11:04:28 +01:00
Jasper Van der Jeugt
ca20400712 Merge pull request #215 from co-dan/pandoc-transf
Added the `pandocCompilerWithTransformM` function
2014-01-28 01:59:40 -08:00
Dan
84ba953ed3 Typo in Pandoc.hs 2014-01-26 10:14:04 +03:00
Daniil Frumin
8a29542ee6 Added the pandocCompilerWithTransformM function 2014-01-24 14:55:32 +04:00
Jasper Van der Jeugt
63107a6f75 Merge pull request #190 from krsch/master
Implemented per-directory metadata support
2014-01-23 01:29:01 -08:00
Alexey Kreshchuk
dbabe0325b Unified code for global and external metadata
Didn't clean up unused code though
2014-01-22 00:11:51 +04:00
Alexey Kreshchuk
d406db44e3 set internalRules last, so that it can be overrided by rules 2014-01-21 23:15:08 +04:00
Jasper Van der Jeugt
bc360a3f46 Use only one site on .darkfox.id.au in examples 2014-01-21 11:34:33 +01:00
Jasper Van der Jeugt
4a6ef60466 Merge branch 'patch-1' of git://github.com/james-darkfox/hakyll into james-darkfox-patch-1 2014-01-21 11:32:21 +01:00
Jasper Van der Jeugt
25ca41210d Bump tagsoup dependency
Closes #188
2014-01-21 11:29:18 +01:00
Jasper Van der Jeugt
677cca0578 Add IsString instance for Template
Closes #150
2014-01-19 21:25:18 +01:00
Jasper Van der Jeugt
c024ed8a93 Merge pull request #213 from co-dan/docpatches
Documentation for the template macros
2014-01-19 12:06:06 -08:00
Daniil Frumin
99c464d08f Fix escaped quotes + wording 2014-01-19 23:31:40 +04:00
Daniil Frumin
60f0043471 Documentation for the template macros 2014-01-19 23:20:47 +04:00
Jasper Van der Jeugt
2558ae004a Bump text dependency 2014-01-19 13:34:01 +01:00
Jasper Van der Jeugt
070f2c48e6 Merge pull request #212 from gwern/patch-2
Update examples.markdown
2014-01-19 04:17:16 -08:00
gwern
4b4d6bbee1 Update examples.markdown
updated gwern.net entry after an arduous switch to git and Hakyll-4
2014-01-18 15:48:13 -05:00
james-darkfox
ba8c417d15 Moved blog and changed purpose of root
I have moved the blog to blog.darkfox.id.au, hosting it on github for performance and darkfox.id.au (optionally with ssl), will include a /blog mirror and be more or less a front-page with my links / stats. (Not setup just yet)
2014-01-15 20:29:51 +11:00
Jasper Van der Jeugt
a37f8aedb4 Merge pull request #207 from co-dan/docpatches
More haddocks for Hakyll.Web.Template.Context
2014-01-14 07:33:44 -08:00
Daniil Frumin
52d49c4360 Haddocks for field, constField, bodyField, and titleField in Web.Template.Context 2014-01-12 23:56:49 +04:00
Jasper Van der Jeugt
1b1694d4bd Merge pull request #204 from hh-darkfox/patch-1
Updated darkfox.us.to to darkfox.id.au+SSL
2014-01-12 02:10:20 -08:00
Jasper Van der Jeugt
ab776799ba Merge pull request #206 from co-dan/docpatches
Added documentation for 'Context' and 'defaultField'
2014-01-11 15:30:50 -08:00
Daniil Frumin
cacac208ef Added documentation for 'Context' and 'defaultField' 2014-01-11 23:42:34 +04:00
Jasper Van der Jeugt
38ac6c218f Merge pull request #205 from co-dan/patch-1
Updated examples.markdown with a link to my site
2014-01-06 12:38:33 -08:00
Dan
835f80e0df Updated examples.markdown with a link to my site 2014-01-06 22:16:51 +03:00
hh-darkfox
9619c6f308 Updated darkfox.us.to to darkfox.id.au+SSL 2014-01-05 16:38:57 +11:00
Jasper Van der Jeugt
8321a2a259 Merge pull request #202 from adelbertc/fix-syntax-css
Fix issue with syntax highlighting + line nums.
2014-01-03 07:57:32 -08:00
Jasper Van der Jeugt
b7e4225e41 Merge pull request #203 from freizl/master
Add haisheng personal blog
2014-01-03 07:55:55 -08:00
Jasper Van der Jeugt
0c43160316 Version bump (4.4.3.0) 2014-01-03 16:41:54 +01:00
Jasper Van der Jeugt
b61877bdaa Fix issue with metadataRoute for composed routes 2014-01-03 16:40:15 +01:00
Jasper Van der Jeugt
55a389ee7c Add a test for metadataRoute 2014-01-03 15:56:27 +01:00
Haisheng.W.WU
90c97db043 Add haisheng personal blog 2014-01-02 19:26:49 +08:00
Adelbert Chang
22434b5a69 Fix issue with syntax highlighting + line nums.
Below is the generated HTML for with line numbers and without line numbers, respectively.

```html
<!-- Without line numbers -->
<pre class="sourceCode scala">
    <code class="sourceCode scala">
        <span class="kw">trait</span>
        Monad[M[_]]
    </code>
</pre>

<!-- With line numbers -->
<table class="sourceCode scala numberLines">
    <tr class="sourceCode">
        <td class="lineNumbers">
            <pre>1</pre>
        </td>
        <td class="sourceCode">
            <pre>
                <code class="sourceCode scala">
                    <span class="kw">trait</span>
                    Monad[M[_]]
                </code>
            </pre>
        </td>
    </tr>
</table>

```

The markdown used is:

```

~~~~ { .scala }
trait Monad[M[_]]
~~~~

~~~~ { .scala .numberLines}
trait Monad[M[_]]
~~~~

```

Notice that without line numbers the outer `pre` has a `sourceCode` class whereas with line numbers the `sourceCode` class is only put in `code` and table-related tags.

In the original `syntax.css` file synax highlighting was only triggered if the `kw` and friends tags were within a `pre.sourceCode` - that means it did not trigger with line numbers. This change removes the requirement for the `pre` prefix so that highlighting is triggered with or without line numbers, so long as the code is within *some* `.sourceCode` tag.
2014-01-01 17:22:57 -08:00
Jasper Van der Jeugt
6ba9099225 Add abizern.org to examples 2013-12-27 16:42:09 +01:00
Jasper Van der Jeugt
98ec95585b Merge pull request #201 from mihaimaruseac/patch-1
Add http://techblog.rosedu.org to Hakyll Examples
2013-12-27 07:38:39 -08:00
Mihai Maruseac
864eab3ab9 Add http://techblog.rosedu.org to Hakyll Examples
A technical blog by ROSEdu (Romanian Open Source Education) which was recently moved to Hakyll. Still WIP on some parts.
2013-12-27 09:54:45 -05:00