Hello everyone,

I would like to render a bundle of outputs generated by Jupyter, all 
representing the same object. Some outputs are better suited for HTML and 
some for pdf. So the overall logic that I want to implement is "given this 
list of different representations of an object, include the one that is 
best suited to a specific sphinx builder.

Because I want to choose the highest priority node out of a list, the 
decision cannot be made by examining a single sphinx node. My proposed 
solution is drafted here 
<https://github.com/jupyter/jupyter-sphinx/pull/169/files#diff-604f177e2be9a41e8e15a43d895b2a3cb8666bea301f0223a53527d64668e42fR188-R214>.
 
Implement a MimeBundleNode, which modifies the walk and walkabout methods 
of a node to "pretend" only contained the highest priority child.

While it seems to work™, not being closely familiar with sphinx, I have an 
uneasy feeling that I'm doing something that I'm not supposed to do. Is 
there some subtlety that I overlook? Is there a better implementation?

Thanks in advance,
Anton

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/8ef55217-88a1-4af3-8d36-fd7d0a4bcb79n%40googlegroups.com.

Reply via email to