From 498d6a7fe812f46a02d95d8692832334a11b9b39 Mon Sep 17 00:00:00 2001 From: christophe dervieux Date: Wed, 7 Apr 2021 12:50:09 +0200 Subject: [PATCH 1/2] Allow to select config format in New project menu --- NEWS.md | 2 ++ inst/rstudio/templates/project/skeleton.dcf | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index e81e954a..ea05431a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,8 @@ - `check_content()` will also discover problematic YAML metadata of posts that is not a list (thanks, msmielak, https://stackoverflow.com/q/66857582/559676). +- New Blogdown project menu in RStudio IDE now allows to select for keeping `config.toml` (thanks, @ogansser, #606). + ## MAJOR CHANGES - The `method` argument of `build_site()` has been removed (it was defunct in **blogdown** v1.2). Please set the build method in the global option `options(blogdown.method = )` instead. diff --git a/inst/rstudio/templates/project/skeleton.dcf b/inst/rstudio/templates/project/skeleton.dcf index 75312267..4b3d836e 100644 --- a/inst/rstudio/templates/project/skeleton.dcf +++ b/inst/rstudio/templates/project/skeleton.dcf @@ -30,9 +30,16 @@ Label: Keep empty directories Default: Off Position: right +Parameter: format +Widget: SelectInput +Label: Config file format +Fields: yaml, toml +Defaults: yaml +Position: right + Parameter: to_yaml Widget: CheckboxInput -Label: Convert all metadata to YAML +Label: Convert all post metadata to YAML Default: On Position: right From 6e1688306b8c4fdd58645416a70f00f42d4418bf Mon Sep 17 00:00:00 2001 From: christophe dervieux Date: Wed, 7 Apr 2021 12:51:47 +0200 Subject: [PATCH 2/2] no need to mention blogdown here --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index ea05431a..b2067344 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,7 +6,7 @@ - `check_content()` will also discover problematic YAML metadata of posts that is not a list (thanks, msmielak, https://stackoverflow.com/q/66857582/559676). -- New Blogdown project menu in RStudio IDE now allows to select for keeping `config.toml` (thanks, @ogansser, #606). +- New project menu in RStudio IDE now allows to select for keeping `config.toml` (thanks, @ogansser, #606). ## MAJOR CHANGES