Open zkamvar opened 8 years ago
I've created a test and I don't see how this can work. Essentially this will put a folder ../images
into the tar file, which will expand as such, meaning images/
will go into the wrong directory (i.e., one level up rather than current).
However, perhaps there is a way to accomplish this correctly by adding to the tar file. I haven't had time to investigate that yet.
Perhaps something like
deploy: html
tar cf $(SITEARCH) include libs *.html *_files; \
tar rf $(notdir $(SITEARCH)) images -C ../
But since the -C flag seems to only be for extraction, it might be better as
deploy: html
tar cf $(SITEARCH) include libs *.html *_files; \
cd ../; \
tar rf $(notdir $(SITEARCH)) images; \
cd -
I do not know if this would work, but this would allow people to include images by specifying
![](../images/img.png)
as opposed to placing the entire URL of the master branch, where the image would not exist.@hlapp, would this work?