NESCent / popgenInfo

Vignettes for Population Genetics in R
http://popgen.nescent.org
MIT License
21 stars 50 forks source link

attempt to add images to deploy #157

Open zkamvar opened 8 years ago

zkamvar commented 8 years ago

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?

hlapp commented 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.

zkamvar commented 8 years ago

Perhaps something like

deploy: html
    tar cf $(SITEARCH) include libs *.html *_files; \
    tar rf $(notdir $(SITEARCH)) images -C ../
zkamvar commented 8 years ago

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 -