Replies: 2 comments 1 reply
-
After looking through how the And then update the doc-tree structure. Would this be something that should be contributed directly to the EDIT: The main disadvantage is that we would be coupling internal behavior. sphinx-design would use the knowledge that metadata is injected into the source code cell nodes and the added code would only be useful for the myst-nb library. |
Beta Was this translation helpful? Give feedback.
-
I think one nice solution would be to re-use sphinx design in Myst-nb instead of sphinx-togglebutton, then we could deprecate the "toggle directive" functionality in sphinx toggle button and define some more custom CSS for cell toggles in the themes. One note - an upcoming release of sphinx toggle button is likely going to make the visual style of the toggle buttons to be more similar in structure to sphinx design, though with a bit less ink |
Beta Was this translation helpful? Give feedback.
-
Hey, I have a 'high-level' question where I am having trouble following how all the things work together.
I like the feature of
sphinx-togglebutton
that allows me to configure the tag of a Jupyter notebook cell and writetags = ["hide-input"]
to hide the cells input behind a button with which the user can interact.Now I would like to use the toggle functionality from the Sphinx-Design's Dropdown implementation instead because it is very good-looking, configurable, no JS dependencies, etc.
I have a basic understanding of the docutils tree/nodes implementation but I cannot find the exact point where tag
hide-input
is read from (presumably?) MyST-NB and where it chooses to add the sphinx-togglebutton node.I tried searching it from within GitHub across the entire organization but I can't seem to find the point where this is added.
Or am I misunderstanding something?
Thank you for your help!
PS: I am loving the work of the executablebooks project! And by the end of this week, I might have something to give back to the project :)
Beta Was this translation helpful? Give feedback.
All reactions