mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Blacklist old jQuery version that ships with Sphinx
This commit is contained in:
parent
f9d9a6532f
commit
40631dc344
16
doc/_themes/saltstack/layout.html
vendored
16
doc/_themes/saltstack/layout.html
vendored
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user