@@ -256,6 +256,7 @@ md.use(require("markdown-it-include"));
256
256
257
257
gulp . task ( 'build-getting-started' , [ 'clean-dist' , 'less' ] , function ( ) {
258
258
259
+ const synchronizePimProductsName = 'synchronize-pim-products' ;
259
260
var pages = {
260
261
'your-first-tutorial-4x' : {
261
262
gettingStartedName : 'your-first-tutorial' ,
@@ -362,7 +363,7 @@ gulp.task('build-getting-started', ['clean-dist','less'], function () {
362
363
}
363
364
} ,
364
365
'synchronize-pim-products-6x' : {
365
- gettingStartedName : 'synchronize-pim-products' ,
366
+ gettingStartedName : synchronizePimProductsName ,
366
367
pimVersion : 'v6 / SaaS' ,
367
368
title : 'Synchronize PIM products with your App' ,
368
369
files : {
@@ -402,12 +403,15 @@ gulp.task('build-getting-started', ['clean-dist','less'], function () {
402
403
. pipe ( gulpMarkdownIt ( md ) )
403
404
. pipe ( gulp . dest ( 'tmp/getting-started/' ) )
404
405
. on ( 'end' , function ( ) {
406
+ const gettingStartedName = pages [ path . basename ( path . dirname ( file . path ) ) ] . gettingStartedName ;
407
+
405
408
return gulp . src ( 'src/partials/getting-started.handlebars' )
406
409
. pipe ( gulpHandlebars ( {
407
- active_api_resources : true ,
410
+ active_api_resources : gettingStartedName !== synchronizePimProductsName ,
411
+ active_apps : gettingStartedName === synchronizePimProductsName ,
408
412
title : pages [ path . basename ( path . dirname ( file . path ) ) ] . title ,
409
413
image : pages [ path . basename ( path . dirname ( file . path ) ) ] . image ,
410
- gettingStartedName : pages [ path . basename ( path . dirname ( file . path ) ) ] . gettingStartedName ,
414
+ gettingStartedName : gettingStartedName ,
411
415
pimVersion : pages [ path . basename ( path . dirname ( file . path ) ) ] . pimVersion ,
412
416
availability : pages [ path . basename ( path . dirname ( file . path ) ) ] . availability ,
413
417
mainContent : fs . readFileSync ( 'tmp/getting-started/' + path . basename ( path . dirname ( file . path ) ) + '/' + path . basename ( file . path ) . replace ( / \. m d / , '.html' ) )
0 commit comments