Open maelle opened 4 years ago
I'm not sure; can you make project templates just run a function?
Ah, that I don't know 🙂
@maelle you read my mind! I was literally coming here to offer to make a project template (I think this can be done?). I can squeeze it in next week I think so will report back if it cannot be done :)
please do it before July the 3d :pray: just kidding but that's when I'll demo hugodown. :grin:
Lol I cannot make any promises but I will at least know if I cannot do it by then ðŸ˜
I think it can be done pretty much like with blogdown
project, where the project template runs the internal function blogdown:::blogdown_skeleton()
to create the project. Project template can also have parameter with UI in the IDE.
See https://github.com/rstudio/blogdown/blob/master/inst/rstudio/templates/project/skeleton.dcf
Documentation with another example : https://rstudio.github.io/rstudio-extensions/rstudio_project_templates.html#defining-the-template-function
But you may already know all that right ? 😄
I think I made it work for my own create_site_vanilla()
in #85
From RStudio New Project menu, when distill is installed, one can select distill website / blog as a possible project. Would that be possible with hugodown? blogdown also supports that.