Skip to content

Commit

Permalink
add the "dropdown" button in the demo directive
Browse files Browse the repository at this point in the history
  • Loading branch information
code4yonglei committed Dec 5, 2024
1 parent 6514930 commit c37bb76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,13 @@ class SignatureDirective(_BaseCRDirective):
class ParametersDirective(_BaseCRDirective):
extra_classes = ["dropdown"]


class TypealongDirective(_BaseCRDirective):
extra_classes = ["toggle-shown", "dropdown"]

class DemoDirective(_BaseCRDirective):
extra_classes = ["toggle-shown", "dropdown"]

DIRECTIVES = [SignatureDirective, ParametersDirective, TypealongDirective]
DIRECTIVES = [SignatureDirective, ParametersDirective, TypealongDirective, DemoDirective]


def setup(app):
Expand Down

0 comments on commit c37bb76

Please sign in to comment.