Skip to contents

Create documents from templates

Usage

knit_all(destination = usethis::proj_path("docs"), gallery = "gallery")

knit_template(
  template,
  output_format,
  destination = usethis::proj_path("docs"),
  gallery = "gallery"
)

Arguments

destination

name of the folder containing GitHub pages or equivalent.

name of the subfolder of destination to store the knitted documents.

template

name of the template to knit, e.g. "simple_article".

output_format

A character vector of the output formats to convert to. Each value must be the name of a function producing an output format object, such as "bookdown::pdf_book".

Value

TRUE if all documents have been knitted and copied to the gallery, invisibly.

Details

These functions are used to test the templates and produce a gallery.

These functions are mainly used for test and documentation purposes. In projects based on the templates, use the Knit button (articles, presentations) or the Build the Book button (memoirs) or bookdown::render_book().