Skip to content

Commit 41d251a

Browse files
committed
Always bundle the theme CSS/JS
1 parent 7cd846b commit 41d251a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

sphinx_rtd_theme/layout.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@
4040

4141
{% endif %}
4242

43-
{# RTD hosts this file, so just load on non RTD builds #}
44-
{%- if not READTHEDOCS %}
45-
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
46-
{%- endif %}
43+
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
4744
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
4845
{%- for css in css_files %}
4946
{%- if css|attr("rel") %}
@@ -208,10 +205,7 @@
208205

209206
{% endif %}
210207

211-
{# RTD hosts this file, so just load on non RTD builds #}
212-
{% if not READTHEDOCS %}
213-
<script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
214-
{% endif %}
208+
<script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
215209

216210
<script type="text/javascript">
217211
jQuery(function () {

0 commit comments

Comments
 (0)