Discussion:
[hakyll] Default directory for index.html file
Alex
2015-05-18 10:01:42 UTC
Permalink
Hello everybody,

I am going to publish my blog on GitHub.

Currently index.html is compiled to the folder _site/ and I have to push
this directory to username.github.io

What do I need to change in order to to publish the blog by pushing the
main directory (not _site) ?

Thank you in advance !
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Julien Tanguy
2015-05-19 09:36:45 UTC
Permalink
Hello alex,,

There is a `desinationDirectory` field in the config (see [1]). You can
take the default configuration as a base, and modify the out dir, and use
`hakyllWith yourconfig` instead of `hakyll` [2].
I don't know if hakyll complains that the source and out directories are
the same. Anyway, I'd suggest that you be really specific about your file
imputs and outputs, in order not to overwrite any file.

This solution is again untested, I don't know the results a priori.
Personnaly I'd stay with the _site output folder and push it via git
subtree push --prefix=_site/

Julien

[1]: http://jaspervdj.be/hakyll/reference/Hakyll-Core-Configuration.html
[2]: http://jaspervdj.be/hakyll/reference/Hakyll-Main.html
Post by Alex
Hello everybody,
I am going to publish my blog on GitHub.
Currently index.html is compiled to the folder _site/ and I have to push
this directory to username.github.io
What do I need to change in order to to publish the blog by pushing the
main directory (not _site) ?
Thank you in advance !
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kyle Marek-Spartz
2015-05-19 16:39:49 UTC
Permalink
Relatedly, you could use a git submodule in _site which points to your
github-pages repository/branch.

I've found that github-pages isn't easy to use if you're not using
Jekyll. Additionally, if you have a low-traffic site, sometimes there's
a server not responding error while they spin up a host.

Instead, I wrote this helper for deploying to Amazon S3:

https://github.com/zeckalpha/widely

Here's my Hakyll deploy command:

https://github.com/zeckalpha/kyle.marek-spartz.org/blob/master/site.hs#L249

Unlike github pages, it isn't free, but I only pay 20 cents a month for all
my AWS usage.
Post by Julien Tanguy
Hello alex,,
There is a `desinationDirectory` field in the config (see [1]). You can
take the default configuration as a base, and modify the out dir, and use
`hakyllWith yourconfig` instead of `hakyll` [2].
I don't know if hakyll complains that the source and out directories are
the same. Anyway, I'd suggest that you be really specific about your file
imputs and outputs, in order not to overwrite any file.
This solution is again untested, I don't know the results a priori.
Personnaly I'd stay with the _site output folder and push it via git
subtree push --prefix=_site/
Julien
[1]: http://jaspervdj.be/hakyll/reference/Hakyll-Core-Configuration.html
[2]: http://jaspervdj.be/hakyll/reference/Hakyll-Main.html
Post by Alex
Hello everybody,
I am going to publish my blog on GitHub.
Currently index.html is compiled to the folder _site/ and I have to push
this directory to username.github.io
What do I need to change in order to to publish the blog by pushing the
main directory (not _site) ?
Thank you in advance !
--
Kyle Marek-Spartz
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...