Skip to content

Commit 53e2a78

Browse files
authored
Merge pull request #614 from rtfd/always-bundle-js-css
Always bundle the theme CSS/JS
2 parents 0051b91 + 4b45725 commit 53e2a78

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

docs/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ New Features
1111

1212
Fixes
1313
-----
14+
15+
* Do not rely on readthedocs.org for CSS/JS (#614)
1416
* Color accessibility improvements on the left navigation
1517

1618
Other Changes
@@ -35,6 +37,8 @@ Fixes
3537
v0.3.0
3638
======
3739

40+
**Note**: this version resulted in some JavaScript incompatibilities when used on readthedocs.org
41+
3842
New Features
3943
-------------
4044

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)