-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
55 lines (53 loc) · 1.42 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/**
* Using Gulp pipelines to use SassDoc 2.0 to generate powerful documentation.
*
* @author Nguyen Truong Thinh
* @reference http://sassdoc.com/gulp/
*/
var gulp = require('gulp');
var sassdoc = require('sassdoc');
gulp.task('sdocs', function() {
var options = {
dest: 'docs',
verbose: true,
display: {
access: ['public', 'private'],
alias: true,
watermark: true,
},
groups: {
'undefined': 'helpers'
},
theme: 'default',
package: './package.json',
basePath: 'https://github.com/DevOpsThinh/CSSBootcamp/tree/master/assets/scss',
};
return gulp.src('assets/scss/**/*.scss')
.pipe(sassdoc(options))
.pipe(gulp.dest('/docs'));
});
// var converter = require('sass-convert');
// gulp.task('sconverter', function() {
// var options = {
// dest: 'docs',
// verbose: true,
// display: {
// access: ['public', 'private'],
// alias: true,
// watermark: true,
// },
// groups: {
// 'undefined': 'helpers'
// },
// theme: 'default',
// package: './package.json',
// basePath: 'https://github.com/SassDoc/sassdoc',
// };
// return gulp.src('assets/scss/**/*.+(sass|scss)')
// .pipe(converter({
// from: 'sass',
// to: 'scss',
// }))
// .pipe(sassdoc(options))
// .pipe(gulp.dest('/docs'));
// });