From 35bc8432faa2cc4cac7ba431428685d8f0b76fba Mon Sep 17 00:00:00 2001 From: Christophe Dervieux <christophe.dervieux@gmail.com> Date: Fri, 28 Mar 2025 16:00:11 +0100 Subject: [PATCH] Add QUARTO_DOCUMENT_FILE env var --- docs/advanced/environment-vars.qmd | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/docs/advanced/environment-vars.qmd b/docs/advanced/environment-vars.qmd index b1b8c2d0d..ed0b5dfb1 100644 --- a/docs/advanced/environment-vars.qmd +++ b/docs/advanced/environment-vars.qmd @@ -64,16 +64,20 @@ ENV["QUARTO_DOCUMENT_PATH"] ``` ::: -+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| Variable | Description | -+============================================+=================================================================================================================================================================================================+ -| `QUARTO_PROJECT_ROOT` | Root of the project, or the directory of the file if not in project mode | -+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| `QUARTO_DOCUMENT_PATH` | Directory of the document being rendered | -+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| `QUARTO_PROFILE` | Profile used, e.g `QUARTO_PROFILE=advanced,production` for `quarto render --profile advanced,production` | -+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| `QUARTO_FIG_WIDTH` and `QUARTO_FIG_HEIGHT` | Values for `fig-width` and `fig-height` as set in the document metadata | -+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -| `QUARTO_RUN_NO_NETWORK` | When `true`, Quarto project scripts written in TypeScript won't be allowed to use the network to download sources. In this setting, those scripts will not have access to the standard library. | -+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ \ No newline at end of file ++-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| Variable | Description | ++=========================+=================================================================================================================================================================================================+ +| `QUARTO_PROJECT_ROOT` | Root of the project, or the directory of the file if not in project mode | ++-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| `QUARTO_DOCUMENT_PATH` | Directory of the document being rendered | ++-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| `QUARTO_DOCUMENT_FILE` | Name of the file being rendered | ++-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| `QUARTO_PROFILE` | Profile used, e.g `QUARTO_PROFILE=advanced,production` for `quarto render --profile advanced,production` | ++-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| `QUARTO_FIG_WIDTH` | Values for `fig-width` and `fig-height` as set in the document metadata | +| | | +| `QUARTO_FIG_HEIGHT` | | ++-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ +| `QUARTO_RUN_NO_NETWORK` | When `true`, Quarto project scripts written in TypeScript won't be allowed to use the network to download sources. In this setting, those scripts will not have access to the standard library. | ++-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ \ No newline at end of file