@@ -252,9 +252,10 @@ def add_assets(app, pagename, templatename, context, doctree):
252252
253253def copy_assets (app , exception ):
254254 """ Copy asset files to the output """
255- builders = ( 'html' , 'singlehtml' , 'dirhtml' ,
255+ builders = [ 'html' , 'singlehtml' , 'dirhtml' ,
256256 'readthedocs' , 'readthedocsdirhtml' ,
257- 'readthedocssinglehtml' , 'readthedocssinglehtmllocalmedia' )
257+ 'readthedocssinglehtml' , 'readthedocssinglehtmllocalmedia' ]
258+ builders .extend (app .config ['sphinx_tabs_valid_builders' ])
258259 if app .builder .name not in builders :
259260 if not app .config ['sphinx_tabs_nowarn' ]:
260261 app .warn (
@@ -284,6 +285,7 @@ def copy_assets(app, exception):
284285def setup (app ):
285286 """ Set up the plugin """
286287 app .add_config_value ('sphinx_tabs_nowarn' , False , '' )
288+ app .add_config_value ('sphinx_tabs_valid_builders' , [], '' )
287289 app .add_directive ('tabs' , TabsDirective )
288290 app .add_directive ('tab' , TabDirective )
289291 app .add_directive ('group-tab' , GroupTabDirective )
0 commit comments