File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,10 @@ def run(self):
7878 )
7979
8080 directive_rst = f"""
81- .. details:: **Example**: { scenario_title }
81+ .. raw:: html
82+
83+ <details>
84+ <summary><strong>Example</strong>: { scenario_title } </summary>
8285
8386 .. literalinclude:: { feature_file }
8487 :language: gherkin
@@ -87,6 +90,10 @@ def run(self):
8790 :dedent:
8891 :start-after: Scenario: { scenario_title }
8992 { end_before }
93+
94+ .. raw:: html
95+
96+ </details>
9097"""
9198 viewlist = StringList ()
9299 for i , line in enumerate (directive_rst .splitlines ()):
Original file line number Diff line number Diff line change 3636 "sphinx.ext.viewcode" ,
3737 "sphinxarg.ext" ,
3838 "sphinxcontrib_asciinema" ,
39- "sphinxcontrib.details.directive" ,
4039 "sphinx-jsonschema" ,
4140 "sphinxcontrib.programoutput" ,
4241 "sphinx_tabs.tabs" ,
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ docs = [
9292 ' plantweb==1.3.0' ,
9393 # 'sphinxcontrib.asciinema==0.4.2',
9494 ' sphinx_design==0.6.1' ,
95- ' sphinxcontrib-details-directive==0.1.0' ,
9695 ' sphinx-sitemap==2.9.0' ,
9796 ' sphinx-jsonschema==1.19.2' ,
9897 ' sphinxcontrib-programoutput==0.18' ,
You can’t perform that action at this time.
0 commit comments