ghactions icon indicating copy to clipboard operation
ghactions copied to clipboard

automatically figure out where static site gens (rmarkdown etc) write to

Open maxheld83 opened this issue 6 years ago • 3 comments

usually _site, but could be anything. Would be good to figure this out programmatically, without pestering the user.

I just can't think of an elegant way to do this right now.

maxheld83 avatar Feb 10 '19 17:02 maxheld83

maybe rmarkdown has figured this out already, or can somehow be coaxed into returning the path on execution.

maxheld83 avatar Feb 14 '19 14:02 maxheld83

Execute the rmarkdown::render_site function from within the directory containing your files to build _site, a directory of files ready to deploy as a standalone static website. https://rmarkdown.rstudio.com/lesson-13.html

The generated HTML files and any supporting files (e.g., CSS and JavaScript) are copied into an output directory (_site by default). https://bookdown.org/yihui/rmarkdown/rmarkdown-site.html

VerenaHeld avatar Feb 15 '19 13:02 VerenaHeld

this should be a lot easier now that github actions support input and outputs

maxheld83 avatar Aug 14 '19 15:08 maxheld83