quarto
This module provides tools to render Quarto documents, books, websites,install custom Quarto extensions, and manage LaTeX packages via TeX Live.
Installation
dagger install github.com/softwaredevelop/daggerverse/quarto@34bcf6411d3d63edac14b34277540ebc74ac4092Entrypoint
Return Type
Quarto !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| image | String | - | Custom image reference in "repository:tag" format to use as a base container. |
| extensions | [String ! ] | - | List of Quarto extensions to install (e.g. "quarto-ext/lightbox"). |
| latexPackages | [String ! ] | - | List of optional LaTeX packages to install via tlmgr (requires a TeX-enabled image like quarto-full). |
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@34bcf6411d3d63edac14b34277540ebc74ac4092 call \
func (m *MyModule) Example() *dagger.Quarto {
return dag.
Quarto()
}@function
def example() -> dagger.Quarto:
return (
dag.quarto()
)@func()
example(): Quarto {
return dag
.quarto()
}Types
Quarto 🔗
Quarto provides functions for running and compiling Quarto projects.
build() 🔗
Build compiles the Quarto project and returns the exported output directory.
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Source directory of the Quarto project. |
| outputDir | String | "_output" | Output directory name relative to source (e.g. “_output”, “_site”, “_book”). |
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@34bcf6411d3d63edac14b34277540ebc74ac4092 call \
build --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Directory {
return dag.
Quarto().
Build(source)
}@function
def example(source: dagger.Directory) -> dagger.Directory:
return (
dag.quarto()
.build(source)
)@func()
example(source: Directory): Directory {
return dag
.quarto()
.build(source)
}cli() 🔗
Cli executes an arbitrary command in the Quarto container.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| args | String ! | - | Command string to execute (e.g. “quarto –version” or “quarto check”). |
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@34bcf6411d3d63edac14b34277540ebc74ac4092 call \
cli --args stringfunc (m *MyModule) Example(args string) *dagger.Container {
return dag.
Quarto().
Cli(args)
}@function
def example(args: str) -> dagger.Container:
return (
dag.quarto()
.cli(args)
)@func()
example(args: string): Container {
return dag
.quarto()
.cli(args)
}render() 🔗
Render runs the quarto render command and returns the container.
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| source | Directory ! | - | Source directory of the Quarto project. |
Example
dagger -m github.com/softwaredevelop/daggerverse/quarto@34bcf6411d3d63edac14b34277540ebc74ac4092 call \
render --source DIR_PATHfunc (m *MyModule) Example(source *dagger.Directory) *dagger.Container {
return dag.
Quarto().
Render(source)
}@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.quarto()
.render(source)
)@func()
example(source: Directory): Container {
return dag
.quarto()
.render(source)
}