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/'
},
'bs-docs-scss': {
options: {
// https://regex101.com/r/hG8lU4/1
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');
}
},
expand: true,
cwd: '../bootstrap/docs/assets/scss',
src: [
'**/*',
'!docs.scss' // keep variable customizations
],
dest: 'docs/assets/scss/'
},
//'bs-docs-scss': {
// options: {
// // https://regex101.com/r/hG8lU4/1
// 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');
// }
// },
// expand: true,
// cwd: '../bootstrap/docs/assets/scss',
// src: [
// '**/*',
// '!docs.scss' // keep variable customizations
// ],
// dest: 'docs/assets/scss/'
//},
//'bs-docs-components': {
// options: {
// // //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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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; }
.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 {
margin-bottom: 1.5rem;

View File

@ -171,16 +171,6 @@ let bsDocs = [
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, {
task: {name: 'copy:bs-docs-components'},
source: {
@ -190,6 +180,22 @@ let bsDocs = [
dest: 'docs/components/',
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)