Closed cansavvy closed 2 years ago
I would have thought this would be doing the trick: https://github.com/jhudsl/DaSL_Course_Template_Bookdown/blob/ca63442da64148e0dc414e8df9cbde59e126ed18/_bookdown.yml#L11
But on other repos I'm not seeing it clear out old files: https://github.com/jhudsl/ITCR_Documentation_and_Usability/tree/main/docs
This is a problem and its overdue that I fix it. I think easiest approach is to have render-bookdown.yml delete the docs/* folder completely before running. Or is that too dangerous?
Testing this idea here: https://github.com/jhudsl/Reproducibility_in_Cancer_Informatics/pull/46
As re-renders of bookdown happen it looks like it doesn't actually delete the older versions of the files from
docs/
. Granted those files hanging around don't hurt anything and aren't used by the final render of bookdown, but it does get messy after awhile.Perhaps we can either find a bookdown.yml setting that does clean this out OR we can just do it informally by adding a delete the
docs/
folder step before re-rendering with GHA.