mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
use non-minified docs JS on non-gh-pages
This commit is contained in:
parent
b793fbb13a
commit
92fd25a2a2
4 changed files with 7 additions and 3 deletions
|
@ -60,7 +60,7 @@ module.exports = function (grunt) {
|
||||||
src: 'js/tests/unit/*.js'
|
src: 'js/tests/unit/*.js'
|
||||||
},
|
},
|
||||||
assets: {
|
assets: {
|
||||||
src: ['docs/assets/js/_src/*.js', 'docs/assets/js/*.js', '!docs/assets/js/*.min.js']
|
src: ['docs/assets/js/src/*.js', 'docs/assets/js/*.js', '!docs/assets/js/*.min.js']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ module.exports = function (grunt) {
|
||||||
'docs/assets/js/_vendor/blob.js',
|
'docs/assets/js/_vendor/blob.js',
|
||||||
'docs/assets/js/_vendor/filesaver.js',
|
'docs/assets/js/_vendor/filesaver.js',
|
||||||
'docs/assets/js/raw-files.min.js',
|
'docs/assets/js/raw-files.min.js',
|
||||||
'docs/assets/js/_src/customizer.js'
|
'docs/assets/js/src/customizer.js'
|
||||||
],
|
],
|
||||||
dest: 'docs/assets/js/customize.min.js'
|
dest: 'docs/assets/js/customize.min.js'
|
||||||
},
|
},
|
||||||
|
@ -133,7 +133,7 @@ module.exports = function (grunt) {
|
||||||
src: [
|
src: [
|
||||||
'docs/assets/js/_vendor/holder.js',
|
'docs/assets/js/_vendor/holder.js',
|
||||||
'docs/assets/js/_vendor/ZeroClipboard.min.js',
|
'docs/assets/js/_vendor/ZeroClipboard.min.js',
|
||||||
'docs/assets/js/_src/application.js'
|
'docs/assets/js/src/application.js'
|
||||||
],
|
],
|
||||||
dest: 'docs/assets/js/docs.min.js'
|
dest: 'docs/assets/js/docs.min.js'
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,11 @@
|
||||||
<!-- Placed at the end of the document so the pages load faster -->
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
<script src="../dist/js/bootstrap.min.js"></script>
|
<script src="../dist/js/bootstrap.min.js"></script>
|
||||||
|
{% if site.github %}
|
||||||
<script src="../assets/js/docs.min.js"></script>
|
<script src="../assets/js/docs.min.js"></script>
|
||||||
|
{% else %}
|
||||||
|
<script src="../assets/js/src/application.js"></script>
|
||||||
|
{% endif %}
|
||||||
{% if page.slug == "customize" %}
|
{% if page.slug == "customize" %}
|
||||||
<script src="../assets/js/customize.min.js"></script>
|
<script src="../assets/js/customize.min.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue