You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I have to show large samples of code as documentation examples. As they clutter the page I tend to hide them behind a toggle button. Currently I nest code blocks in toggle containers:
This produces a click to hide/click to show message that I found cumbersome. I would love if code-block and litteral-include blocks with a :caption: parameter could be handled in the same fashion than admonitions.
Users would click on the code sample caption, and that would show/hide the code.
What do you think?
Tasks and updates
No response
The text was updated successfully, but these errors were encountered:
Context
Sometimes I have to show large samples of code as documentation examples. As they clutter the page I tend to hide them behind a toggle button. Currently I nest code blocks in
toggle
containers:Proposal
This produces a
click to hide
/click to show
message that I found cumbersome. I would love ifcode-block
andlitteral-include
blocks with a:caption:
parameter could be handled in the same fashion than admonitions.Users would click on the code sample caption, and that would show/hide the code.
What do you think?
Tasks and updates
No response
The text was updated successfully, but these errors were encountered: