Skip to content

Commit 1270e04

Browse files
committed
Fix indentation
1 parent d7d830a commit 1270e04

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

gulpfile.js

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ function genericTask(lang){
2323
}
2424

2525
return gulp.src(files)
26-
.pipe(markdownpdf({
27-
cwd: path.resolve('./temp/'),
28-
layout: 'github'
29-
}))
30-
.on('error', function(err){
31-
gutil.log(gutil.colors.red('doc task failed'), err);
32-
})
33-
.pipe(rename(function (path) {
34-
var lang = 'ENG';
35-
if(path.basename.indexOf('-') >= 0){
36-
lang = path.basename.replace('README-', '').toUpperCase();
37-
}
38-
path.basename = TITLE + ' ('+lang+')';
39-
path.extname = '.pdf'
40-
}))
41-
.pipe(gulp.dest('./build/'));
26+
.pipe(markdownpdf({
27+
cwd: path.resolve('./temp/'),
28+
layout: 'github'
29+
}))
30+
.on('error', function(err){
31+
gutil.log(gutil.colors.red('doc task failed'), err);
32+
})
33+
.pipe(rename(function (path) {
34+
var lang = 'ENG';
35+
if(path.basename.indexOf('-') >= 0){
36+
lang = path.basename.replace('README-', '').toUpperCase();
37+
}
38+
path.basename = TITLE + ' ('+lang+')';
39+
path.extname = '.pdf'
40+
}))
41+
.pipe(gulp.dest('./build/'));
4242
});
4343

4444
}
@@ -64,15 +64,14 @@ gulp.task('default', function(cb){
6464

6565
gulp.task('copy:md', function(){
6666
return gulp.src(['README.md', 'i18n/README-*.md'])
67-
68-
// @todo I have no idea where should the TOC go?!
69-
// for now, let's keep the TOC content and remove these markers
70-
.pipe(replace('<!--toc-->', ''))
71-
.pipe(replace('<!--endtoc-->', ''))
72-
73-
// preapre the image paths for the renderer
74-
.pipe(replace(/https:\/\/rawgit.com\/mgechev\/angularjs-in-patterns\/master\/images/g, '.'))
75-
.pipe(gulp.dest('./temp/'));
67+
// @todo I have no idea where should the TOC go?!
68+
// for now, let's keep the TOC content and remove these markers
69+
.pipe(replace('<!--toc-->', ''))
70+
.pipe(replace('<!--endtoc-->', ''))
71+
72+
// preapre the image paths for the renderer
73+
.pipe(replace(/https:\/\/rawgit.com\/mgechev\/angularjs-in-patterns\/master\/images/g, '.'))
74+
.pipe(gulp.dest('./temp/'));
7675
});
7776

7877
gulp.task('copy:images', function(){

0 commit comments

Comments
 (0)