In a website-project, how can I additionally render specific dirs/files to additional output formats when calling quarto render?
#8394
Replies: 2 comments 18 replies
|
Could you provide a small reproducible example of your setup? (Way more easier to work with a concrete example than to "assume" 😉) |
That is interesting. What do you feel you need to use profile to render to a format ? Is this because you are switching for a website project to a default project and you want every .qmd to be a pdf file ?
Did you try without resorting to your profile usage for format ? Look at metadata merging (https://quarto.org/docs/projects/quarto-projects.html#metadata-merging) to understand how format key in Maybe we have an issue in merging (and your reproducible example will help), but if you need to have some subfolder to have a specific format, the shared |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
Hello,
assume I have a website-project with principal structure:
report/ manuscript.qmd preproject/ manuscript.qmd documentation/ meta/ docs.qmd package_citations.qmd methods/ pls.md pca.qmd .... ...Files and structure are defined for the website in a root-level
_quarto.yaml-file. Format-Options are defined in root-level_quarto-{format}.yaml-files, e.g._quarto-html.yaml. Execution is kicked off by runningquarto render --to html --to pdf --profile default,html ,pdfin a terminal.I now want to render all files documents to html. However, files in subfolders
reportandpreprojectshould also be converted to pdf. Documents in other places should only get compiled to HTML. Obviously I cannot just chuck the pdf-yaml file at the project-root, that should result in all files being rendered as pdf as well.Instead, you can add a directory-specific metadata-file, however this seems to have no effect on what files are converted to pdf when running
quarto render --to html --to pdf --profile default,html ,pdf. Additionally it seems that I am unable to disable pdf-rendering at will unless I remove the directory-level pdf options again.Am I just missunderstanding how this should be done?
Thank you.
Sincerely,
~Gw
Edit 2024-01-24 11:17:
quarto checkreturns:All reactions