mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-26 11:34:05 +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/'
|
||||
},
|
||||
'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
|
||||
|
|
|
@ -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/'
|
||||
}),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user