Skip to content

Commit fe9e2c4

Browse files
committed
Fix compatibility with readthedocs
1 parent 7d20617 commit fe9e2c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sphinx_tabs/tabs.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ def add_assets(app):
198198

199199
def copy_assets(app, exception):
200200
""" Copy asset files to the output """
201-
if app.builder.name != 'html' or exception:
201+
if app.builder.name not in ('html', 'readthedocs', 'readthedocssinglehtmllocalmedia'):
202+
app.info('Not copying tabs assets! Not compatible with %s builder' % app.builder.name)
203+
return
204+
if exception:
205+
app.info('Not copying tabs assets! Error occurred previously')
202206
return
203207
app.info('Copying tabs assets... ', nonl=True)
204208

0 commit comments

Comments
 (0)