Skip to content

Commit 3af26bc

Browse files
committed
Fix typo that causes css files not to be removed when tabs are not used
1 parent ee9410f commit 3af26bc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v1.1.7
2+
* Fix css files not being removed when tabs are not used on a page
3+
14
v1.1.6
25
* Don't emit an additional error in the copy assets handler if the build process fails
36

sphinx_tabs/tabs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def update_context(app, pagename, templatename, context, doctree):
222222
if 'css_files' in context:
223223
context['css_files'] = context['css_files'][:]
224224
for path in paths:
225-
if path.endswith('.cs'):
225+
if path.endswith('.css'):
226226
context['css_files'].remove(path)
227227
if 'script_files' in context:
228228
context['script_files'] = context['script_files'][:]

0 commit comments

Comments
 (0)