Skip to content
ricochet

Static Sites

Many tasks generate static HTML sites, such as Quarto (R, Julia, or Python) or R Markdown documents. These static sites can be served alongside the content item itself using the [static] content settings in your _ricochet.toml file.

The [static] section supports the following fields:

FieldDescription
output_dirThe directory to serve.
indexThe file to serve from output_dir. Defaults to index.html.

To serve an R Markdown website that renders to the _site/ directory:

[static]
index = "index.html"
output_dir = "_site"

The site will be accessible at /static/{item-id} and will automatically redirect to the index path.