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.
Configuration
Section titled “Configuration”The [static] section supports the following fields:
| Field | Description |
|---|---|
output_dir | The directory to serve. |
index | The file to serve from output_dir. Defaults to index.html. |
Example
Section titled “Example”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.