Blacklist old jQuery version that ships with Sphinx

This commit is contained in:
Seth House 2013-02-27 18:37:36 -07:00
parent f9d9a6532f
commit 40631dc344

View File

@ -14,6 +14,17 @@
{%- set titlesuffix = "" %}
{%- endif %}
{# Remove old version of jQuery #}
{% set js_blacklist = [
'_static/jquery.js',
] %}
{# Add to top of the list #}
{% set script_files = [
'_static/js/vendor/jquery-1.9.1.js',
'_static/js/vendor/bootstrap.min.js',
] + script_files %}
{%- macro relbar() %}
<div class="related">
{#
@ -62,7 +73,9 @@
};
</script>
{%- for scriptfile in script_files %}
{% if scriptfile not in js_blacklist %}
<script src="{{ pathto(scriptfile, 1) }}"></script>
{% endif %}
{%- endfor %}
{%- endmacro %}
@ -244,9 +257,6 @@
</footer>
{%- endblock %}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ pathto('_static/js/vendor/jquery-1.9.1.js', 1) }}"><\/script>')</script>
<script src="{{ pathto('_static/js/vendor/bootstrap.min.js', 1) }}"></script>
<script src="{{ pathto('_static/js/main.js', 1) }}"></script>
<script>