Replies: 1 comment 2 replies
-
As I've mentioned previously, it mainly comes down to the trade-off with storing builder agnostic data in the doctree (i.e. before post-transforms), otherwise it breaks multi builder runs (e.g. building HTML and LaTeX). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem statement
Idea
Could we teach the
OutputBundleNode
play nicely with all other sphinx resources? For that we'd need it to pretend being math when it contains math, pretend being an image when it contains an image, etc. As far as I can tell, most of sphinx machinery relies onNode.traverse
behavior, which in turn walks the ast and callsisinstance
a bunch of times. That seems to suggest that implementingOutputBundleNode.__subclasscheck__
would allow to move in that direction.WDYT?
Beta Was this translation helpful? Give feedback.
All reactions