docs copy scss

This commit is contained in:
Kevin Ross 2016-03-09 10:50:09 -06:00
parent 68f61c8eb1
commit 7573811e07
24 changed files with 54 additions and 48 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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
// //

View File

@ -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
// //

View File

@ -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

View File

@ -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
// //

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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; }

View File

@ -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;

View File

@ -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)