@@ -16,7 +16,7 @@ function genericTask(lang){
1616
1717 var files = [ './temp/*.md' ] ;
1818 if ( lang === 'eng' ) {
19- files = './temp/README.md' ;
19+ files = './temp/README.md' ;
2020 }
2121 else if ( lang !== 'all' ) {
2222 files = [ './temp/*-' + lang + '.md' ] ;
@@ -46,11 +46,11 @@ function genericTask(lang){
4646// build custom tasks for i18n
4747
4848glob . sync ( './temp/README-*.md' ) . map ( function ( file ) {
49-
49+ 5050 return file . replace ( 'README-' , '' ) ;
5151
5252} ) . concat ( [ 'all' , 'eng' ] ) . forEach ( function ( lang ) {
53-
53+ 5454 genericTask ( lang ) ;
5555 gulp . task ( 'doc:pdf:' + lang , function ( cb ) {
5656 runSequence ( 'clean' , [ 'copy:images' , 'copy:md' ] , 'generate:pdf:' + lang , cb ) ;
@@ -64,13 +64,13 @@ gulp.task('default', function(cb){
6464
6565gulp . task ( 'copy:md' , function ( ) {
6666 return gulp . src ( [ 'README.md' , 'i18n/README-*.md' ] )
67-
67+ 6868 // @todo I have no idea where should the TOC go?!
6969 // for now, let's keep the TOC content and remove these markers
7070 . pipe ( replace ( '<!--toc-->' , '' ) )
7171 . pipe ( replace ( '<!--endtoc-->' , '' ) )
7272
73- // preapre the image paths for the renderer
73+ // preapre the image paths for the renderer
7474 . 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, '.' ) )
7575 . pipe ( gulp . dest ( './temp/' ) ) ;
7676} ) ;
0 commit comments