JunoLab / Weave.jl

Scientific reports/literate programming for Julia
http://weavejl.mpastell.com
MIT License
821 stars 94 forks source link

[FR] Batch Processing to Different File Formats #439

Open TheCedarPrince opened 2 years ago

TheCedarPrince commented 2 years ago

Would there be interest in me creating a PR to enable a new feature for batch processing of one file to multiple different output types? My use case is that often, I need to convert one jmd file to multiple outputs like notebooks, pdfs, etc. I would love to add in a feature to Weave.jl that looks something like this:

weave_batch("myfile.jmd"; out_files = Dict(
     "PDF" => (out_path = "folder1/myfile.pdf", cache = :all), 
     "IPYNB" => (out_path = "folder2/myfile.ipynb", highlight_theme = ...)
)

Where the dictionary keys could define what file format to convert the given document to and the values are the associated kwargs to that converstion. Could I create a PR for this feature? Or would it not be good for Weave? Thanks!