@@ -72,12 +72,12 @@ def depart(translator, node):
72
72
73
73
74
74
class TabsDirective (SphinxDirective ):
75
- """ Top-level tabs directive """
75
+ """Top-level tabs directive"""
76
76
77
77
has_content = True
78
78
79
79
def run (self ):
80
- """ Parse a tabs directive """
80
+ """Parse a tabs directive"""
81
81
self .assert_has_content ()
82
82
83
83
node = nodes .container (type = "tab-element" )
@@ -125,7 +125,7 @@ def run(self):
125
125
126
126
127
127
class TabDirective (SphinxDirective ):
128
- """ Tab directive, for adding a tab to a collection of tabs """
128
+ """Tab directive, for adding a tab to a collection of tabs"""
129
129
130
130
has_content = True
131
131
@@ -135,7 +135,7 @@ def __init__(self, *args, **kwargs):
135
135
super ().__init__ (* args , ** kwargs )
136
136
137
137
def run (self ):
138
- """ Parse a tab directive """
138
+ """Parse a tab directive"""
139
139
self .assert_has_content ()
140
140
141
141
tabs_id = self .env .temp_data ["tabs_stack" ][- 1 ]
@@ -204,7 +204,7 @@ def run(self):
204
204
205
205
206
206
class GroupTabDirective (TabDirective ):
207
- """ Tab directive that toggles with same tab names across page"""
207
+ """Tab directive that toggles with same tab names across page"""
208
208
209
209
has_content = True
210
210
@@ -220,7 +220,7 @@ def run(self):
220
220
221
221
222
222
class CodeTabDirective (GroupTabDirective ):
223
- """ Tab directive with a codeblock as its content"""
223
+ """Tab directive with a codeblock as its content"""
224
224
225
225
has_content = True
226
226
required_arguments = 1 # Lexer name
@@ -238,7 +238,7 @@ class CodeTabDirective(GroupTabDirective):
238
238
}
239
239
240
240
def run (self ):
241
- """ Parse a code-tab directive"""
241
+ """Parse a code-tab directive"""
242
242
self .assert_has_content ()
243
243
244
244
if len (self .arguments ) > 1 :
@@ -287,13 +287,13 @@ def unknown_visit(self, node):
287
287
288
288
@property
289
289
def found_tabs_directive (self ):
290
- """ Return whether a sphinx tabs directive was found """
290
+ """Return whether a sphinx tabs directive was found"""
291
291
return self ._found
292
292
293
293
294
294
# pylint: disable=unused-argument
295
295
def update_context (app , pagename , templatename , context , doctree ):
296
- """ Remove sphinx-tabs CSS and JS asset files if not used in a page """
296
+ """Remove sphinx-tabs CSS and JS asset files if not used in a page"""
297
297
if doctree is None :
298
298
return
299
299
visitor = _FindTabsDirectiveVisitor (doctree )
@@ -316,7 +316,7 @@ def update_context(app, pagename, templatename, context, doctree):
316
316
317
317
318
318
def setup (app ):
319
- """ Set up the plugin """
319
+ """Set up the plugin"""
320
320
app .add_config_value ("sphinx_tabs_valid_builders" , [], "" )
321
321
app .add_config_value ("sphinx_tabs_disable_tab_closing" , False , "html" , [bool ])
322
322
app .add_node (SphinxTabsContainer , html = (visit , depart ))
0 commit comments