mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Use the docs banner for all the docs generated files.
This commit is contained in:
parent
9b71314fd8
commit
016d573a80
4 changed files with 27 additions and 8 deletions
15
Gruntfile.js
15
Gruntfile.js
|
@ -23,6 +23,12 @@ module.exports = function (grunt) {
|
|||
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
||||
' * Licensed under <%= _.pluck(pkg.licenses, "type") %> (<%= _.pluck(pkg.licenses, "url") %>)\n' +
|
||||
' */\n',
|
||||
bannerDocs: '/*!\n' +
|
||||
' * Bootstrap Docs (<%= pkg.homepage %>)\n' +
|
||||
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
||||
' * Licensed under the Creative Commons Attribution 3.0 Unported License. For\n' +
|
||||
' * details, see http://creativecommons.org/licenses/by/3.0/.\n' +
|
||||
' */\n',
|
||||
jqueryCheck: 'if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery") }\n\n',
|
||||
|
||||
// Task configuration.
|
||||
|
@ -112,12 +118,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
customize: {
|
||||
options: {
|
||||
banner: '/*!\n' +
|
||||
' * Bootstrap Docs (<%= pkg.homepage %>)\n' +
|
||||
' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
|
||||
' * Licensed under the Creative Commons Attribution 3.0 Unported License. For\n' +
|
||||
' * details, see http://creativecommons.org/licenses/by/3.0/.\n' +
|
||||
' */\n',
|
||||
banner: '<%= bannerDocs %>\n',
|
||||
report: 'min'
|
||||
},
|
||||
src: [
|
||||
|
@ -132,6 +133,7 @@ module.exports = function (grunt) {
|
|||
},
|
||||
docsJs: {
|
||||
options: {
|
||||
banner: '<%= bannerDocs %>\n',
|
||||
report: 'min'
|
||||
},
|
||||
src: [
|
||||
|
@ -182,6 +184,7 @@ module.exports = function (grunt) {
|
|||
cssmin: {
|
||||
compress: {
|
||||
options: {
|
||||
banner: '<%= bannerDocs %>\n',
|
||||
keepSpecialComments: '*',
|
||||
noAdvanced: true, // turn advanced optimizations off until it's fixed in clean-css
|
||||
report: 'min',
|
||||
|
|
12
docs/assets/css/pack.min.css
vendored
12
docs/assets/css/pack.min.css
vendored
File diff suppressed because one or more lines are too long
1
docs/assets/js/customize.min.js
vendored
1
docs/assets/js/customize.min.js
vendored
File diff suppressed because one or more lines are too long
7
docs/assets/js/docs.min.js
vendored
7
docs/assets/js/docs.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue