-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Is your feature request related to a problem? Please describe.
Thank you for the great little package, it's very handy! Currently the deprecation admonition is rendered as a collapsible block. This looks a little odd to me given that the warning message inside is usually just one line long.
Describe the solution you'd like
A way to specify the block as non-collapsible, presumably a setting in the configuration for the plugin:
extensions:
- griffe_warnings_deprecated:
title: null
kind: warning
collapsible: false # or something like that
Describe alternatives you've considered
- Manually do the warning with
!!!rather than???but that defeats the point of these warnings being automatically generated. - Disable
pymdownx.detailsfor certain docs pages/sections? Not even sure if that's possible.
Additional context
I'd be happy to contribute a PR to add this functionality if you could give me a hint about what you'd like the configuration syntax to be (e.g. allow collapsible on/off or expanded/collapsed by default?) and how to actually implement it 😅 Because at a quick glance at the code it seems like DocstringSectionAdmonition doesn't have a collapse/expand argument (I guess that behaviour is purely controlled by the pymdownx.details plugin?) so maybe this is just not possible...
FYI @maxschulz-COL