Skip to contents

A wrapper around babelquarto::render_website() that first checks for and optionally creates placeholder files for missing translations before rendering the full website.

Usage

render_resource(
  project_path = ".",
  site_url = NULL,
  profile = NULL,
  preview = rlang::is_interactive(),
  add_missings = TRUE,
  yml_file = "_quarto.yml",
  pages_path = "pages",
  include_index = TRUE,
  include_pages = TRUE
)

Arguments

project_path

Passed to babelquarto. The path to the Quarto project directory. Defaults to the current directory (.).

site_url

Passed to babelquarto. The base URL of the deployed website.

profile

Passed to babelquarto. An optional Quarto profile to use for rendering.

preview

Passed to babelquarto. Logical. If TRUE, preview the site after rendering. Defaults to rlang::is_interactive().

add_missings

Logical. If TRUE, find and create placeholder files for any missing translations before rendering.

yml_file

The name of the Quarto configuration file. Defaults to _quarto.yml.

pages_path

The path to the directory containing the Quarto documents. Defaults to "pages".

include_index

Logical. If TRUE, check for missing index page translations.

include_pages

Logical. If TRUE, check for missing translations of files within pages_path.

Value

This function is called for its side effects and does not return a value.

Examples

if (FALSE) { # \dontrun{
# Render the website in the current project, creating missing files
render_resource()

# Render without creating missing files and without a preview
render_resource(add_missings = FALSE, preview = FALSE)
} # }