mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-26 19:44:07 +03:00
docs copy scss
This commit is contained in:
parent
68f61c8eb1
commit
7573811e07
30
Gruntfile.js
30
Gruntfile.js
|
@ -288,21 +288,21 @@ module.exports = function (grunt) {
|
||||||
dest: 'docs/_plugins/'
|
dest: 'docs/_plugins/'
|
||||||
},
|
},
|
||||||
|
|
||||||
'bs-docs-scss': {
|
//'bs-docs-scss': {
|
||||||
options: {
|
// options: {
|
||||||
// https://regex101.com/r/hG8lU4/1
|
// // https://regex101.com/r/hG8lU4/1
|
||||||
process: function (content, srcpath) {
|
// process: function (content, srcpath) {
|
||||||
return content.replace(/([\s\S]+)/mg, '// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs\n\n$1');
|
// return content.replace(/([\s\S]+)/mg, '// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs\n\n$1');
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
expand: true,
|
// expand: true,
|
||||||
cwd: '../bootstrap/docs/assets/scss',
|
// cwd: '../bootstrap/docs/assets/scss',
|
||||||
src: [
|
// src: [
|
||||||
'**/*',
|
// '**/*',
|
||||||
'!docs.scss' // keep variable customizations
|
// '!docs.scss' // keep variable customizations
|
||||||
],
|
// ],
|
||||||
dest: 'docs/assets/scss/'
|
// dest: 'docs/assets/scss/'
|
||||||
},
|
//},
|
||||||
//'bs-docs-components': {
|
//'bs-docs-components': {
|
||||||
// options: {
|
// options: {
|
||||||
// // //https://regex101.com/r/cZ7aO8/2
|
// // //https://regex101.com/r/cZ7aO8/2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// scss-lint:disable ImportantRule
|
// scss-lint:disable ImportantRule
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
.anchorjs-link {
|
.anchorjs-link {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
//
|
//
|
||||||
// Bootstrap "B" Booticon
|
// Bootstrap "B" Booticon
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
//
|
//
|
||||||
// Brand guidelines
|
// Brand guidelines
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// Wall of Browser Bugs
|
// Wall of Browser Bugs
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// Buttons
|
// Buttons
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
//
|
//
|
||||||
// Callouts
|
// Callouts
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// clipboard.js
|
// clipboard.js
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// scss-lint:disable QualifyingElement
|
// scss-lint:disable QualifyingElement
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// scss-lint:disable IdSelector, NestingDepth, SelectorDepth
|
// scss-lint:disable IdSelector, NestingDepth, SelectorDepth
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
//
|
//
|
||||||
// Examples
|
// Examples
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
.bd-featured-sites {
|
.bd-featured-sites {
|
||||||
margin-right: -1px;
|
margin-right: -1px;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
.bd-featurette {
|
.bd-featurette {
|
||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
//
|
//
|
||||||
// Footer
|
// Footer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// scss-lint:disable ImportantRule
|
// scss-lint:disable ImportantRule
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
//
|
//
|
||||||
// Main navbar
|
// Main navbar
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// scss-lint:disable ImportantRule
|
// scss-lint:disable ImportantRule
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// scss-lint:disable ImportantRule
|
// scss-lint:disable ImportantRule
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
//
|
//
|
||||||
// Side navigation
|
// Side navigation
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
// scss-lint:disable IdSelector
|
// scss-lint:disable IdSelector
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
.hll { background-color: #ffc; }
|
.hll { background-color: #ffc; }
|
||||||
.c { color: #999; }
|
.c { color: #999; }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by grunt docs-copy-bootstrap-docs
|
// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs
|
||||||
|
|
||||||
.bd-team {
|
.bd-team {
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
|
|
|
@ -171,16 +171,6 @@ let bsDocs = [
|
||||||
process: docsProcess
|
process: docsProcess
|
||||||
}),
|
}),
|
||||||
|
|
||||||
//new Copy(gulp, docsPreset, docsConfig, {
|
|
||||||
// task: {name: 'copy:bs-docs-getting-started'},
|
|
||||||
// source: {
|
|
||||||
// options: {cwd: '../bootstrap/docs/getting-started'},
|
|
||||||
// glob: ['**/*']
|
|
||||||
// },
|
|
||||||
// dest: 'docs/getting-started/',
|
|
||||||
// process: docsProcess
|
|
||||||
//}),
|
|
||||||
|
|
||||||
new Copy(gulp, docsPreset, docsConfig, {
|
new Copy(gulp, docsPreset, docsConfig, {
|
||||||
task: {name: 'copy:bs-docs-components'},
|
task: {name: 'copy:bs-docs-components'},
|
||||||
source: {
|
source: {
|
||||||
|
@ -190,6 +180,22 @@ let bsDocs = [
|
||||||
dest: 'docs/components/',
|
dest: 'docs/components/',
|
||||||
process: docsProcess
|
process: docsProcess
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
new Copy(gulp, docsPreset, docsConfig, {
|
||||||
|
task: {name: 'copy:bs-docs-scss'},
|
||||||
|
source: {
|
||||||
|
options: {cwd: '../bootstrap/docs/assets/scss'},
|
||||||
|
glob: [
|
||||||
|
'**/*',
|
||||||
|
'!docs.scss' // keep variable customizations
|
||||||
|
]
|
||||||
|
},
|
||||||
|
dest: 'docs/assets/scss/',
|
||||||
|
process: (content, srcpath) => {
|
||||||
|
return content.replace(/([\s\S]+)/mg, '// DO NOT EDIT IT WILL BE OVERWRITTEN - copy of bootstrap documentation generated by gulp docs:copy-bs\n\n$1');
|
||||||
|
}
|
||||||
|
}),
|
||||||
]
|
]
|
||||||
|
|
||||||
new TaskSeries(gulp, 'bsDocs', bsDocs)
|
|
||||||
|
new TaskSeries(gulp, 'docs:copy-bs', bsDocs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user