Open p-gw opened 2 years ago
We don't currently have anything like that (but its a great idea!). We'll definitely consider this for a future release
Thanks for the reply, I'm looking forward to seeing this implemented.
In case anybody stumbles upon this issue, here is my current workaround using a simple shell script like I mentioned above:
#!/bin/bash
for state in 1 2 3
do
quarto render _report_by_state.qmd --output report_state_$state.html -P state:$state
done
quarto render
Some things to note:
report_by_state.qmd
→ _report_by_state.qmd
such that it doesn't get rendered by defaultquarto render
after the for loop to render the remaining documents in the project (introduction.qmd
) A related challenge is to have the generated reports listed either in a listing or in a sidebar - currently (AFAICT)
resources:
listing: contents: report_*.html
and even smartly include the files in the rendered site directory, but the listing isn't particularly pretty (it only displays filename and date) - though one could pre-generate a YAML file for this
Hi everyone,
I have a question regarding a somewhat advanced use case: If I have created a project that contains a simple notebook (e.g.
introduction.qmd
) and a parameterised notebook (e.g.report_by_state.qmd
) whose output is required multiple times with different parameter values is it possible to render the whole project usingquarto render
?Say I want to render
introduction.qmd
andreport_by_state.qmd
for state1
,2
, and3
. If using html outputs this should result inintroduction.html
report_state_1.html
report_state_2.html
report_state_3.html
It is of course possible to write a shell script to render reports in this way, but I think it would be nice if there was something like this
and being able to render everything with a single
quarto render
.Except writing a custom shell script, is there currently a method which makes it possible to achieve something like this?