Skip to content

Commit 7e513f2

Browse files
authored
Merge pull request #1594 from quarto-dev/add-env-var
Add QUARTO_DOCUMENT_FILE env var
2 parents c5b906a + 35bc843 commit 7e513f2

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

docs/advanced/environment-vars.qmd

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,20 @@ ENV["QUARTO_DOCUMENT_PATH"]
6464
```
6565
:::
6666

67-
+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
68-
| Variable | Description |
69-
+============================================+=================================================================================================================================================================================================+
70-
| `QUARTO_PROJECT_ROOT` | Root of the project, or the directory of the file if not in project mode |
71-
+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
72-
| `QUARTO_DOCUMENT_PATH` | Directory of the document being rendered |
73-
+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
74-
| `QUARTO_PROFILE` | Profile used, e.g `QUARTO_PROFILE=advanced,production` for `quarto render --profile advanced,production` |
75-
+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
76-
| `QUARTO_FIG_WIDTH` and `QUARTO_FIG_HEIGHT` | Values for `fig-width` and `fig-height` as set in the document metadata |
77-
+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
78-
| `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. |
79-
+--------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
67+
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
68+
| Variable | Description |
69+
+=========================+=================================================================================================================================================================================================+
70+
| `QUARTO_PROJECT_ROOT` | Root of the project, or the directory of the file if not in project mode |
71+
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
72+
| `QUARTO_DOCUMENT_PATH` | Directory of the document being rendered |
73+
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
74+
| `QUARTO_DOCUMENT_FILE` | Name of the file being rendered |
75+
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
76+
| `QUARTO_PROFILE` | Profile used, e.g `QUARTO_PROFILE=advanced,production` for `quarto render --profile advanced,production` |
77+
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
78+
| `QUARTO_FIG_WIDTH`  | Values for `fig-width` and `fig-height` as set in the document metadata |
79+
| | |
80+
| `QUARTO_FIG_HEIGHT` | |
81+
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
82+
| `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. |
83+
+-------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

0 commit comments

Comments
 (0)