-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
☣️ Refactor transformMdast
and postProcessMdast
to a single pipeline
#1699
base: main
Are you sure you want to change the base?
Conversation
|
I'm breaking for Christmas, but I will take notes here of what is left to do!
|
This needs to be updated when we merge #1727, the gates plugin needs to happen before the blocks. |
This spike investigates fusing our single and multi-document pipelines. The motivation for this follows from previous conversations at SciPy 2024 about making more responsive MyST
start
builds, and capturing transform dependencies.We originally discussed building MyST transforms as a directional graph. This PR is much less ambitious; it's not clear that a directional graph is necessarily desirable; MyST would become much harder to reason about if we can't treat it as a linear series of transforms.
There were other reasons not do go as far as a graph, but I can't remember them at this very moment.
before
andafter
constraints on pluginsWe did not have to fuse the pre and post phases; that was a choice to put logic in one place. The rationale is that we can treat the need perform referencing across pages as a "sync" point for builds within a single-document pipeline.