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/' dest: 'docs/assets/js/vendor/'
}, },
'bs-docs-plugins': { //'bs-docs-plugins': {
expand: true, // expand: true,
cwd: '../bootstrap/docs/_plugins', // cwd: '../bootstrap/docs/_plugins',
src: ['**/*', '!bridge.rb'], // src: ['**/*', '!bridge.rb'],
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

View File

@ -185,16 +185,22 @@ let bsDocs = [
task: {name: 'copy:bs-docs-scss'}, task: {name: 'copy:bs-docs-scss'},
source: { source: {
options: {cwd: '../bootstrap/docs/assets/scss'}, options: {cwd: '../bootstrap/docs/assets/scss'},
glob: [ glob: ['**/*', '!docs.scss'] // keep variable customizations
'**/*',
'!docs.scss' // keep variable customizations
]
}, },
dest: 'docs/assets/scss/', dest: 'docs/assets/scss/',
process: (content, srcpath) => { 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'); 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/'
}),
] ]