rstudio / distill

Distill for R Markdown
https://rstudio.github.io/distill/
Apache License 2.0
422 stars 57 forks source link

Question: Where to include html and pdf files? #353

Open mskar opened 3 years ago

mskar commented 3 years ago

Whenever I run distill::render_site(), an html file in my output directory (docs) gets deleted and a pdf at the top level gets move to the output directory (docs). The html file displays a pdf file included in my site repo. Is there a recommended location for html and pdf files? I would like to be able to run distill::render_site() without having to then restore the html file and delete the pdf file.

jjallaire commented 3 years ago

You might be able to play with the include / exclude settings to prevent this from happening: https://rstudio.github.io/distill/website.html#site-output

Also, if you put these files in a subdirectory (as opposed to the root) and include the subdirectory, they shouldn't be interfered with at all by render_site()