mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-30 05:24:09 +03:00
bsDocs plugin copy
This commit is contained in:
parent
7573811e07
commit
76cc724b56
13
Gruntfile.js
13
Gruntfile.js
|
@ -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
|
||||||
|
|
|
@ -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/'
|
||||||
|
}),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user