I'm building a course website with blogdown. I'd like to follow a similar setup as this site, which was from the rstudio::conf(2020) workshops. That is, I'd like all of the blogdown stuff to live in site/
(e.g., config.toml
, themes/
, etc.), and then I can put other course materials in the materials
directory.
I've set up my netlify.toml
file as in the example repo, and everything works great when I push to GitHub. However, when I try to build locally with the blogdown::serve_site()
addin, I get the following error:
Error in site_root(config, .site_dir) :
Could not find config.toml / config.yaml under
/Users/jakethompson/Documents/GIT/references/intro-to-ml-tidy
/Users/jakethompson/Documents/GIT/references/
/Users/jakethompson/Documents/GIT
/Users/jakethompson/Documents
/Users/jakethompson
/Users
/
So blogdown doesn't know to look under the site/
directory. I'm sure there is an option somewhere to make this happen, but I have so far been unsuccessful in finding it (e.g., here or here).
Does anyone have guidance for making blogdown build locally from a subdirectory?
cc: blogdown wizard @apreshill, who created the original site