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
Is your feature request related to a problem? Please describe.
When doing documentation where the code is a big focus and you have many examples for the user it would be nice to have a setting to get the code blocks un-collapsed/open as default 😊
Describe the solution you'd like
A setting would be nice, something like collapse_codeblocks_as_default with default true, but which can be overwritten with false to get all code blocks to stay open.
Maybe implemented like so <details class="quote" {% if not config.collapse_codeblocks_as_default %} open {% endif %}> in class.html.jinja and function.html.jinja.
Describe alternatives you've considered
What I've done now is that I've used custom templates for class.html.jinja and function.html.jinja with assistance from @pawamoy 😊
Thanks for the feature request @Wesztman 🙂 Sounds good. I'd add an expand_source option which defaults to False. PRs welcome! Otherwise I'll get to it eventually 🙂
Is your feature request related to a problem? Please describe.
When doing documentation where the code is a big focus and you have many examples for the user it would be nice to have a setting to get the code blocks un-collapsed/open as default 😊
Describe the solution you'd like
A setting would be nice, something like
collapse_codeblocks_as_default
with default true, but which can be overwritten with false to get all code blocks to stay open.Maybe implemented like so
<details class="quote" {% if not config.collapse_codeblocks_as_default %} open {% endif %}>
inclass.html.jinja
andfunction.html.jinja
.Describe alternatives you've considered
What I've done now is that I've used custom templates for
class.html.jinja
andfunction.html.jinja
with assistance from @pawamoy 😊Additional context
Discussion regarding this can be found here.
The text was updated successfully, but these errors were encountered: