@@ -252,9 +252,10 @@ def add_assets(app, pagename, templatename, context, doctree):
252
252
253
253
def copy_assets (app , exception ):
254
254
""" Copy asset files to the output """
255
- builders = ( 'html' , 'singlehtml' , 'dirhtml' ,
255
+ builders = [ 'html' , 'singlehtml' , 'dirhtml' ,
256
256
'readthedocs' , 'readthedocsdirhtml' ,
257
- 'readthedocssinglehtml' , 'readthedocssinglehtmllocalmedia' )
257
+ 'readthedocssinglehtml' , 'readthedocssinglehtmllocalmedia' ]
258
+ builders .extend (app .config ['sphinx_tabs_valid_builders' ])
258
259
if app .builder .name not in builders :
259
260
if not app .config ['sphinx_tabs_nowarn' ]:
260
261
app .warn (
@@ -284,6 +285,7 @@ def copy_assets(app, exception):
284
285
def setup (app ):
285
286
""" Set up the plugin """
286
287
app .add_config_value ('sphinx_tabs_nowarn' , False , '' )
288
+ app .add_config_value ('sphinx_tabs_valid_builders' , [], '' )
287
289
app .add_directive ('tabs' , TabsDirective )
288
290
app .add_directive ('tab' , TabDirective )
289
291
app .add_directive ('group-tab' , GroupTabDirective )
0 commit comments