Discussion:
[hakyll] Specify path to data
Sergey Bushnyak
2015-12-05 14:32:24 UTC
Permalink
My source located in src with all static files and code, data with articles
is located level above, when using comething like this

match (fromGlob ("../data/" ++ dir ++ "/content/articles/*.md")) $
version "convertedPage" $
compile $ do
myPandocCompiler >>= saveSnapshot "contentM"

No articles is created. When I put data in src it works. How should I
specify path to data properly?
--
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.
Jasper Van der Jeugt
2015-12-05 16:22:22 UTC
Permalink
I would suggest either:

1. Run hakyll from the top-level directory that has both `data` and `src`.

2. Set `providerDirectory` in `HakyllConfiguration` to `../data`.

Hope this helps,
Peace,
Jasper
Post by Sergey Bushnyak
My source located in src with all static files and code, data with articles
is located level above, when using comething like this
match (fromGlob ("../data/" ++ dir ++ "/content/articles/*.md")) $
version "convertedPage" $
compile $ do
myPandocCompiler >>= saveSnapshot "contentM"
No articles is created. When I put data in src it works. How should I
specify path to data properly?
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
For more options, visit https://groups.google.com/d/optout.
--
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.
Sergey Bushnyak
2015-12-05 16:29:19 UTC
Permalink
As I understand Hakyll can't understand absolute path? For example, I might
have separate repo where other people pushing articles. I think making
symlink with 1 option you described is best approach
Post by Jasper Van der Jeugt
1. Run hakyll from the top-level directory that has both `data` and `src`.
2. Set `providerDirectory` in `HakyllConfiguration` to `../data`.
Hope this helps,
Peace,
Jasper
Post by Sergey Bushnyak
My source located in src with all static files and code, data with
articles
Post by Sergey Bushnyak
is located level above, when using comething like this
match (fromGlob ("../data/" ++ dir ++ "/content/articles/*.md")) $
version "convertedPage" $
compile $ do
myPandocCompiler >>= saveSnapshot "contentM"
No articles is created. When I put data in src it works. How should I
specify path to data properly?
--
You received this message because you are subscribed to the Google
Groups "hakyll" group.
Post by Sergey Bushnyak
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
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.
Sergey Bushnyak
2015-12-05 16:06:46 UTC
Permalink
Tried to pinpoint from exact Identifier, but still no result

let path = "../data/"++dir -- dirs are "en", "fr", etc
match (fromList[fromFilePath (path ++ "/content/articles/*.md")]) $
version "convertedPage" $
compile $ do
myPandocCompiler >>= saveSnapshot "contentM"
--
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...