mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Merge pull request #12505 from ZDroid/js-cs-hint
Reorganize docs assets
This commit is contained in:
commit
b9a0d1e4cd
7 changed files with 12 additions and 10 deletions
16
Gruntfile.js
16
Gruntfile.js
|
@ -56,7 +56,7 @@ module.exports = function (grunt) {
|
|||
src: 'js/tests/unit/*.js'
|
||||
},
|
||||
assets: {
|
||||
src: ['docs/assets/js/application.js', 'docs/assets/js/customizer.js']
|
||||
src: 'docs/assets/js/src/*.js'
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -98,7 +98,7 @@ module.exports = function (grunt) {
|
|||
'ids': false,
|
||||
'overqualified-elements': false
|
||||
},
|
||||
src: ['docs/assets/css/docs.css']
|
||||
src: 'docs/assets/css/src/docs.css'
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -148,7 +148,7 @@ module.exports = function (grunt) {
|
|||
'docs/assets/js/vendor/blob.js',
|
||||
'docs/assets/js/vendor/filesaver.js',
|
||||
'docs/assets/js/raw-files.min.js',
|
||||
'docs/assets/js/customizer.js'
|
||||
'docs/assets/js/src/customizer.js'
|
||||
],
|
||||
dest: 'docs/assets/js/customize.min.js'
|
||||
},
|
||||
|
@ -158,7 +158,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
src: [
|
||||
'docs/assets/js/vendor/holder.js',
|
||||
'docs/assets/js/application.js'
|
||||
'docs/assets/js/src/application.js'
|
||||
],
|
||||
dest: 'docs/assets/js/docs.min.js'
|
||||
}
|
||||
|
@ -246,8 +246,8 @@ module.exports = function (grunt) {
|
|||
compatibility: 'ie8'
|
||||
},
|
||||
src: [
|
||||
'docs/assets/css/docs.css',
|
||||
'docs/assets/css/pygments-manni.css'
|
||||
'docs/assets/css/src/docs.css',
|
||||
'docs/assets/css/src/pygments-manni.css'
|
||||
],
|
||||
dest: 'docs/assets/css/docs.min.css'
|
||||
}
|
||||
|
@ -286,12 +286,12 @@ module.exports = function (grunt) {
|
|||
examples: {
|
||||
expand: true,
|
||||
cwd: 'docs/examples/',
|
||||
src: ['**/*.css'],
|
||||
src: '**/*.css',
|
||||
dest: 'docs/examples/'
|
||||
},
|
||||
docs: {
|
||||
files: {
|
||||
'docs/assets/css/docs.css': 'docs/assets/css/docs.css'
|
||||
'docs/assets/css/src/docs.css': 'docs/assets/css/src/docs.css'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -16,6 +16,7 @@ encoding: UTF-8
|
|||
|
||||
exclude:
|
||||
- "jade"
|
||||
- "src"
|
||||
- "vendor"
|
||||
|
||||
# Custom vars
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
* details, see http://creativecommons.org/licenses/by/3.0/.
|
||||
*/
|
||||
// Intended to prevent false-positive bug reports about responsive styling supposedly not working in IE8.
|
||||
if (window.location.protocol == 'file:')
|
||||
alert("ERROR: Bootstrap's responsive CSS is disabled!\nSee getbootstrap.com/getting-started/#respond-file-proto for details.")
|
||||
if (window.location.protocol == 'file:') {
|
||||
alert('ERROR: Bootstrap\'s responsive CSS is disabled!\nSee getbootstrap.com/getting-started/#respond-file-proto for details.')
|
||||
}
|
Loading…
Reference in a new issue