bsDocs plugin copy

This commit is contained in:
Kevin Ross 2016-03-09 10:57:13 -06:00
parent 7573811e07
commit 76cc724b56
2 changed files with 16 additions and 11 deletions

View File

@ -281,13 +281,12 @@ module.exports = function (grunt) {
],
dest: 'docs/assets/js/vendor/'
},
'bs-docs-plugins': {
expand: true,
cwd: '../bootstrap/docs/_plugins',
src: ['**/*', '!bridge.rb'],
dest: 'docs/_plugins/'
},
//'bs-docs-plugins': {
// expand: true,
// cwd: '../bootstrap/docs/_plugins',
// src: ['**/*', '!bridge.rb'],
// dest: 'docs/_plugins/'
//},
//'bs-docs-scss': {
// options: {
// // https://regex101.com/r/hG8lU4/1

View File

@ -185,16 +185,22 @@ let bsDocs = [
task: {name: 'copy:bs-docs-scss'},
source: {
options: {cwd: '../bootstrap/docs/assets/scss'},
glob: [
'**/*',
'!docs.scss' // keep variable customizations
]
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 Copy(gulp, docsPreset, docsConfig, {
task: {name: 'copy:bs-docs-plugins'},
source: {
options: {cwd: '../bootstrap/docs/_plugins'},
glob: ['**/*', '!bridge.rb']
},
dest: 'docs/_plugins/'
}),
]