Skip to content

Commit

Permalink
Fix two missing "." in profiles.qmd (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyzeng authored Oct 18, 2023
1 parent 5de1490 commit 14f6854
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/projects/profiles.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Project profiles enable you to adapt the options, environment, and content of yo

- You may want to have distinct execution behavior when running on a production server. For example, you may want to use `freeze` or `cache` when rendering locally but always execute all of the code when running on a CI server.
- You may want to provide distinct access credentials for databases or web services depending on the profile.
- You may want to create different versions of a book from the same source code (e.g. a basic and advanced version)
- You may want to create different versions of a book from the same source code (e.g. a basic and advanced version).

When a project profile is activated a number of things occur:

1) Profile specific `config` is merged with the top-level `_quarto.yml`
1) Profile specific `config` is merged with the top-level `_quarto.yml`.
2) Profile specific [environment variables](environment.qmd#profile-environments) are applied.
3) Divs can use the `when-profile` attribute to target content specifically for that project.
4) The `QUARTO_PROFILE` environment variable includes the profile name so that other code (e.g. Python or R code) can condition its behavior on the active profile.
Expand Down Expand Up @@ -115,6 +115,7 @@ The `advanced` and `production` profiles would each be applied if you specify th
``` {.bash filename="Terminal"}
# multiple profiles in environment
export QUARTO_PROFILE=advanced,production
quarto render

# multiple profiles on command line
quarto render --profile advanced,production
Expand Down

0 comments on commit 14f6854

Please sign in to comment.