@@ -16,7 +16,7 @@ function genericTask(lang){
16
16
17
17
var files = [ './temp/*.md' ] ;
18
18
if ( lang === 'eng' ) {
19
- files = './temp/README.md' ;
19
+ files = './temp/README.md' ;
20
20
}
21
21
else if ( lang !== 'all' ) {
22
22
files = [ './temp/*-' + lang + '.md' ] ;
@@ -46,11 +46,11 @@ function genericTask(lang){
46
46
// build custom tasks for i18n
47
47
48
48
glob . sync ( './temp/README-*.md' ) . map ( function ( file ) {
49
-
49
+
50
50
return file . replace ( 'README-' , '' ) ;
51
51
52
52
} ) . concat ( [ 'all' , 'eng' ] ) . forEach ( function ( lang ) {
53
-
53
+
54
54
genericTask ( lang ) ;
55
55
gulp . task ( 'doc:pdf:' + lang , function ( cb ) {
56
56
runSequence ( 'clean' , [ 'copy:images' , 'copy:md' ] , 'generate:pdf:' + lang , cb ) ;
@@ -64,13 +64,13 @@ gulp.task('default', function(cb){
64
64
65
65
gulp . task ( 'copy:md' , function ( ) {
66
66
return gulp . src ( [ 'README.md' , 'i18n/README-*.md' ] )
67
-
67
+
68
68
// @todo I have no idea where should the TOC go?!
69
69
// for now, let's keep the TOC content and remove these markers
70
70
. pipe ( replace ( '<!--toc-->' , '' ) )
71
71
. pipe ( replace ( '<!--endtoc-->' , '' ) )
72
72
73
- // preapre the image paths for the renderer
73
+ // preapre the image paths for the renderer
74
74
. pipe ( replace ( / h t t p s : \/ \/ r a w g i t .c o m \/ m g e c h e v \/ a n g u l a r j s - i n - p a t t e r n s \/ m a s t e r \/ i m a g e s / g, '.' ) )
75
75
. pipe ( gulp . dest ( './temp/' ) ) ;
76
76
} ) ;
0 commit comments