Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two missing "." in profiles.qmd #873

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading