Fork me on GitHub
#perun
<
2017-04-24
>
martinklepsch03:04:03

@bhagany I usually just set :out-dir to "." but that doesn’t help with 0.4.2-SNAPSHOT because there’s also the global :doc-root metadata and I don’t quite understand how these two interact…

bhagany03:04:58

@martinklepsch okay, I see. I think I can explain

bhagany03:04:57

the way I think of it is, :out-dir is the path relative to root where a file is written, and :doc-root is the part of the path relative to the root that files are intended to be served from

bhagany03:04:53

so, for instance, when we default both :out-dir and :doc-root to public, we're saying, "output files to public, and then we're also going to serve them from public"

bhagany03:04:34

The interaction between them is used for things like calculating permalinks and canonical urls

bhagany03:04:04

Specifically, :doc-root is the part of the file's path that is not present in links

bhagany03:04:52

In your case, I think :doc-root can be ""

martinklepsch04:04:34

I thought I tried setting doc root to ""...

martinklepsch04:04:10

I use "." For out-dir most of the time I think that might be breaking some of the regex handling there

bhagany12:04:58

that could be... does :out-dir "" not do what you expect?