mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Merge pull request #614 from rtfd/always-bundle-js-css
Always bundle the theme CSS/JS
This commit is contained in:
commit
53e2a78457
@ -11,6 +11,8 @@ New Features
|
||||
|
||||
Fixes
|
||||
-----
|
||||
|
||||
* Do not rely on readthedocs.org for CSS/JS (#614)
|
||||
* Color accessibility improvements on the left navigation
|
||||
|
||||
Other Changes
|
||||
@ -35,6 +37,8 @@ Fixes
|
||||
v0.3.0
|
||||
======
|
||||
|
||||
**Note**: this version resulted in some JavaScript incompatibilities when used on readthedocs.org
|
||||
|
||||
New Features
|
||||
-------------
|
||||
|
||||
|
@ -40,10 +40,7 @@
|
||||
|
||||
{% endif %}
|
||||
|
||||
{# RTD hosts this file, so just load on non RTD builds #}
|
||||
{%- if not READTHEDOCS %}
|
||||
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
||||
{%- endif %}
|
||||
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
||||
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
||||
{%- for css in css_files %}
|
||||
{%- if css|attr("rel") %}
|
||||
@ -208,10 +205,7 @@
|
||||
|
||||
{% endif %}
|
||||
|
||||
{# RTD hosts this file, so just load on non RTD builds #}
|
||||
{% if not READTHEDOCS %}
|
||||
<script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
|
||||
{% endif %}
|
||||
<script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user