jupyter-book / mystmd

Command line tools for working with MyST Markdown.
https://mystmd.org/guide
MIT License
219 stars 64 forks source link

Allow patterns in downloads #1623

Open HelgeGehring opened 2 weeks ago

HelgeGehring commented 2 weeks ago

Right now all files for downloads need to be listed one-by-one in the header. It would be great to allow pattern-matching for downloading dynamically generated files. An example would by python scripts which generate *.svg files. Instead of listing each file in the header, a simple pattern would allow matching all of those files.

Proposal

Allow something like

  downloads:
    - file: *.svg

in the header. This could list all *.svg-files in the current folder and make them available to download. (Assuming a folder-structure for the notebooks)

Additional notes

Thanks again for the great project!