@@ -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
6565gulp . 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 ( / 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- . 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 ( / 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, '.' ) )
74+ . pipe ( gulp . dest ( './temp/' ) ) ;
7675} ) ;
7776
7877gulp . task ( 'copy:images' , function ( ) {
0 commit comments