@@ -591,41 +591,9 @@ gulp.task('build-events-api', ['clean-dist','less'], function () {
591
591
}
592
592
) ;
593
593
594
- gulp . task ( 'build-apps-homepage' , [ 'clean-dist' , 'less' ] , function ( ) {
595
- var pages = {
596
- 'overview.md' : 'Overview' ,
597
- 'authentication-and-authorization.md' : 'Authentication and authorization' ,
598
- 'catalogs.md' : 'Catalogs for Apps <span class="label label-beta">Beta</span>' ,
599
- 'app-developer-tools.md' : 'Developer tools' ,
600
- 'app-concepts-and-use-cases.md' : 'App concepts and use cases'
601
- } ;
602
-
603
- var isOnePage = false ;
604
-
605
- return gulp . src ( 'content/apps/apps.md' )
606
- . pipe ( flatmap ( function ( stream , file ) {
607
- return gulp . src ( 'content/apps/apps.md' )
608
- . pipe ( insert . wrap ( "::::: mainContent\n" , "\n:::::" ) )
609
- . pipe ( insert . prepend ( getTocMarkdown ( isOnePage , pages , path . basename ( file . path ) , '/apps' ) + "\n" ) )
610
- . pipe ( gulpMarkdownIt ( md ) )
611
- . pipe ( gulp . dest ( 'tmp/apps/' ) )
612
- . on ( 'end' , function ( ) {
613
- return gulp . src ( 'src/partials/apps.handlebars' )
614
- . pipe ( gulpHandlebars ( {
615
- active_apps : true ,
616
- mainContent : fs . readFileSync ( 'tmp/apps/' + path . basename ( file . path ) . replace ( / \. m d / , '.html' ) )
617
- } , {
618
- partialsDirectory : [ './src/partials' ]
619
- } ) )
620
- . pipe ( rename ( path . basename ( file . path ) . replace ( / \. m d / , '.html' ) ) )
621
- . pipe ( revReplace ( { manifest : gulp . src ( "./tmp/rev/rev-manifest.json" ) } ) )
622
- . pipe ( gulp . dest ( './dist' ) ) ;
623
- } )
624
- } ) ) ;
625
- } ) ;
626
-
627
594
gulp . task ( 'build-apps' , [ 'clean-dist' , 'less' ] , function ( ) {
628
595
var pages = {
596
+ 'homepage.md' : 'Start building your App' ,
629
597
'overview.md' : 'Overview' ,
630
598
'authentication-and-authorization.md' : 'Authentication and authorization' ,
631
599
'catalogs.md' : 'Catalogs for Apps <span class="label label-beta">Beta</span>' ,
@@ -635,9 +603,9 @@ gulp.task('build-apps', ['clean-dist','less'], function () {
635
603
636
604
var isOnePage = false ;
637
605
638
- return gulp . src ( [ 'content/apps/*.md' , '!content/apps/apps.md' ] )
606
+ return gulp . src ( [ 'content/apps/*.md' ] )
639
607
. pipe ( flatmap ( function ( stream , file ) {
640
- return gulp . src ( [ 'content/apps/*.md' , '!content/apps/apps.md' ] )
608
+ return gulp . src ( [ 'content/apps/*.md' ] )
641
609
. pipe ( insert . wrap ( "::::: mainContent\n" , "\n:::::" ) )
642
610
. pipe ( insert . prepend ( getTocMarkdown ( isOnePage , pages , path . basename ( file . path ) , '/apps' ) + "\n" ) )
643
611
. pipe ( gulpMarkdownIt ( md ) )
@@ -659,8 +627,9 @@ gulp.task('build-apps', ['clean-dist','less'], function () {
659
627
}
660
628
) ;
661
629
662
- gulp . task ( 'build-redirections' , [
630
+ gulp . task ( 'build-redirections' , [
663
631
'to-get-your-app-token-redirection' ,
632
+ 'to-apps-homepage'
664
633
] ) ;
665
634
666
635
gulp . task ( 'to-get-your-app-token-redirection' , [ 'clean-dist' , 'less' ] , function ( ) {
@@ -669,6 +638,12 @@ gulp.task('to-get-your-app-token-redirection', ['clean-dist','less'], function (
669
638
. pipe ( gulp . dest ( './dist/apps' ) )
670
639
} ) ;
671
640
641
+ gulp . task ( 'to-apps-homepage' , [ 'clean-dist' , 'less' ] , function ( ) {
642
+ return gulp . src ( 'content/redirections/to-apps-homepage.html' )
643
+ . pipe ( rename ( 'apps.html' ) )
644
+ . pipe ( gulp . dest ( './dist' ) )
645
+ } ) ;
646
+
672
647
gulp . task ( 'build-concepts' , [ 'clean-dist' , 'less' ] , function ( ) {
673
648
674
649
var pages = {
0 commit comments