Open poldrack opened 1 year ago
It looks like this is working because of the metadata-files
. You can workaround right now by placing the contents of the yaml metadata-file right inline into _quarto.yml
and _quarto-undergrad.yml
. I think we may need to re-resolve the complete metadata-files
metadata after the profile has been applied.
Thanks - that works! It would probably be good to make this clear on the relevant documentation page: https://quarto.org/docs/projects/profiles.html
(See also repro case here https://github.com/quarto-dev/quarto-cli/issues/8323)
Removing documentation label as resolved via https://github.com/quarto-dev/quarto-web/pull/1376
Leaving open for enhancement to handle metadata-files
in project profiles.
Bug description
I am trying to render a book with a profile-specific metadata file specified in the profile _quarto.yml. However, the profile-specific metadata file doesn't seem to actually be used. All of the relevant files can be found at https://github.com/poldrack/quarto_profile_test. The profile here is called "undergrad".
Here are the contents of the
_quarto-undergrad.yml
:I know that the project setting is being parsed, because the output is placed in the specified directory. However, the settings in
_book-undergrad.yml
are not being included. This can be seen in several places when comparing the output - the title, authors, and chapters should be different for the specified profile, but they are not. However, the profile is being corrected detected when the pages are rendered, as the following code within one of the qmd files gives the expected output:Steps to reproduce
Expected behavior
there should be a number of differences, including different title, authors, and chapter listing.
Actual behavior
only the detected profile reported in the index.qmd file differs as expected.:
Your environment
-OS: Ubuntu 22.04.3 LTS (IDE not relevant as this runs in the shell)
Quarto check output
Note: this was done using the development version of quarto-cli, commit 3aab9b28b