jupyter-book / mystmd

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

Improvements to support `parts` for exports #1246

Open fwkoch opened 6 months ago

fwkoch commented 6 months ago

Individual files allow parts to be defined in their frontmatter. These are respected for static exports of those files. However, parts cannot be defined at the project/export level. We should extend the frontmatter parts to be allowed there:

...
project:
  exports:
    - format: pdf
      abstract: My Custom Export Abstract

Additionally, it would be nice to allow these to be paths to files rather than inline text.

rowanc1 commented 6 months ago

Very excited about this, especially around enabling parts to be defined by files in general.

fwkoch commented 1 month ago

We should make sure this works for site templates, including live reload if the part is a file path.

fwkoch commented 1 month ago

Ok - just hashing through things a bit to make sure I understand (1) the current state of things and (2) how to proceed...

How do parts currently work?

What are the next steps

What isn't covered in the above scope