Skip to contents

Creates the necessary directories, high level files and structures for a condensr website.

Usage

create_website(dir, title)

Arguments

dir

Target directory for the website.

title

Title of the website.

Value

No return value, called to create the skeleton structure of the website.

Details

Under the hood, this function is creating a distill website (using distill:::do_create_website), and then overwriting some files with condensr specifics. These specific files are:

  • _site.yml - for site specific configurations

  • index.qmd - the home page of the website

  • staff_list.R - an example setup the condensr staff, project and publication lists

  • staff/index.qmd - the template page that will list staff members

  • staff/joe-bloggs/index.qmd - an example page for the hypothetical staff member

Examples

create_website(dir = tempdir(), "test_site")
#> Warning: '/var/folders/bl/50qwpc0n15517355znb7_srnfcm2zk/T//RtmpmtuMP2' already exists
#> Creating /var/folders/bl/50qwpc0n15517355znb7_srnfcm2zk/T//RtmpmtuMP2/project/_quarto.yml
#> Warning: incomplete final line found on '/Users/mlyd0001/Library/Caches/org.R-project.R/R/renv/library/condensr-42cf85f5/R-4.3/aarch64-apple-darwin20/condensr/quarto/templates/project/_quarto.yml'
#> Creating /var/folders/bl/50qwpc0n15517355znb7_srnfcm2zk/T//RtmpmtuMP2/project/index.qmd
#> Creating /var/folders/bl/50qwpc0n15517355znb7_srnfcm2zk/T//RtmpmtuMP2/project/people.qmd
#> Creating /var/folders/bl/50qwpc0n15517355znb7_srnfcm2zk/T//RtmpmtuMP2/project/joe-bloggs.qmd