@@ -800,22 +800,22 @@ gulp.task('build-misc-documentation', ['clean-dist','less'], function () {
800800) ;
801801
802802gulp . task ( 'build-tutorials-homepage' , [ 'clean-dist' , 'less' ] , function ( ) {
803- let pages = {
803+ const pages = {
804804 "how-to-get-your-app-token.md" : "How to get your App token" ,
805805 "how-to-retrieve-pim-structure.md" : "How to retrieve PIM structure" ,
806- "how-to-get-categories.md" : "How to get categories" ,
807- "how-to-parse-product-values.md" : "How to parse product values" ,
808- "how-to-collect-products.md" : "How to collect products" ,
809- "how-to-collect-product-variations.md" : "How to collect product variations" ,
810- "how-to-get-families-and-attributes.md" : "How to get families and attributes" ,
811- "how-to-publish-your-app.md" : "How to publish your App" ,
806+ // "how-to-get-categories.md": "How to get categories",
807+ // "how-to-parse-product-values.md": "How to parse product values",
808+ // "how-to-collect-products.md": "How to collect products",
809+ // "how-to-collect-product-variations.md": "How to collect product variations",
810+ // "how-to-get-families-and-attributes.md": "How to get families and attributes",
811+ // "how-to-publish-your-app.md": "How to publish your App",
812812 } ;
813813
814- let useCases = [
814+ const useCases = [
815815 { 'color' : 'light-blue' , 'use_case' : 'App Workflow' } ,
816816 ] ;
817817
818- let features = [
818+ const features = [
819819 { 'color' : 'yellow' , 'feature' : 'Products' } ,
820820 { 'color' : 'purple' , 'feature' : 'Product Models' } ,
821821 { 'color' : 'light-green' , 'feature' : 'Variant Products' } ,
@@ -824,7 +824,7 @@ gulp.task('build-tutorials-homepage', ['clean-dist','less'], function () {
824824 { 'color' : 'coral' , 'feature' : 'Categories' } ,
825825 ]
826826
827- let tutorials = [
827+ const tutorials = [
828828 {
829829 'title' : 'How to get your App token' ,
830830 'link' : '/tutorials/how-to-get-your-app-token.html' ,
@@ -837,49 +837,49 @@ gulp.task('build-tutorials-homepage', ['clean-dist','less'], function () {
837837 'features' : [ ] ,
838838 'use_cases' : useCases
839839 } ,
840- {
841- 'title' : 'How to get categories' ,
842- 'link' : '/apps/how-to-get-categories.html' ,
843- 'features' : [ features [ 5 ] ] ,
844- 'use_cases' : useCases
845- } ,
846- {
847- 'title' : 'How to parse product values' ,
848- 'link' : '/apps/how-to-parse-product-values.html' ,
849- 'features' : [ features [ 0 ] ] ,
850- 'use_cases' : useCases
851- } ,
852- {
853- 'title' : 'How to collect products' ,
854- 'link' : '/apps/how-to-collect-products.html' ,
855- 'features' : [ features [ 0 ] ] ,
856- 'use_cases' : useCases
857- } ,
858- {
859- 'title' : 'How to collect product variations' ,
860- 'link' : '/apps/how-to-collect-product-variations.html' ,
861- 'features' : [ features [ 2 ] ] ,
862- 'use_cases' : useCases
863- } ,
864- {
865- 'title' : 'How to get families and attributes' ,
866- 'link' : '/apps/how-to-get-families-and-attributes.html' ,
867- 'features' : [ features [ 3 ] , features [ 4 ] ] ,
868- 'use_cases' : useCases
869- } ,
870- {
871- 'title' : 'How to publish your App' ,
872- 'link' : '/apps/how-to-publish-your-app.html' ,
873- 'features' : [ ] ,
874- 'use_cases' : useCases
875- } ,
840+ // {
841+ // 'title': 'How to get categories',
842+ // 'link': '/apps/how-to-get-categories.html',
843+ // 'features': [features[5]],
844+ // 'use_cases': useCases
845+ // },
846+ // {
847+ // 'title': 'How to parse product values',
848+ // 'link': '/apps/how-to-parse-product-values.html',
849+ // 'features': [features[0]],
850+ // 'use_cases': useCases
851+ // },
852+ // {
853+ // 'title': 'How to collect products',
854+ // 'link': '/apps/how-to-collect-products.html',
855+ // 'features': [features[0]],
856+ // 'use_cases': useCases
857+ // },
858+ // {
859+ // 'title': 'How to collect product variations',
860+ // 'link': '/apps/how-to-collect-product-variations.html',
861+ // 'features': [features[1], features[2]],
862+ // 'use_cases': useCases
863+ // },
864+ // {
865+ // 'title': 'How to get families and attributes',
866+ // 'link': '/apps/how-to-get-families-and-attributes.html',
867+ // 'features': [ features[4 ], features[3 ]],
868+ // 'use_cases': useCases
869+ // },
870+ // {
871+ // 'title': 'How to publish your App',
872+ // 'link': '/apps/how-to-publish-your-app.html',
873+ // 'features': [],
874+ // 'use_cases': useCases
875+ // },
876876 ] ;
877877
878- let isOnePage = false ;
878+ const isOnePage = false ;
879879
880- return gulp . src ( 'content/tutorials/homepage.md' )
880+ return gulp . src ( 'content/tutorials/homepage/* .md' )
881881 . pipe ( flatmap ( function ( stream , file ) {
882- return gulp . src ( 'content/tutorials/*.md' )
882+ return gulp . src ( 'content/tutorials/homepage/ *.md' )
883883 . pipe ( insert . wrap ( "::::: mainContent\n" , "\n:::::" ) )
884884 . pipe ( insert . prepend ( getTocMarkdown ( isOnePage , pages , path . basename ( file . path ) , '/tutorials' ) + "\n" ) )
885885 . pipe ( gulpMarkdownIt ( md ) )
@@ -904,22 +904,22 @@ gulp.task('build-tutorials-homepage', ['clean-dist','less'], function () {
904904) ;
905905
906906gulp . task ( 'build-tutorials' , [ 'clean-dist' , 'less' ] , function ( ) {
907- let pages = {
907+ const pages = {
908908 "how-to-get-your-app-token.md" : "How to get your App token" ,
909909 "how-to-retrieve-pim-structure.md" : "How to retrieve PIM structure" ,
910- "how-to-get-categories.md" : "How to get categories" ,
911- "how-to-parse-product-values.md" : "How to parse product values" ,
912- "how-to-collect-products.md" : "How to collect products" ,
913- "how-to-collect-product-variations.md" : "How to collect product variations" ,
914- "how-to-get-families-and-attributes.md" : "How to get families and attributes" ,
915- "how-to-publish-your-app.md" : "How to publish your App" ,
910+ // "how-to-get-categories.md": "How to get categories",
911+ // "how-to-parse-product-values.md": "How to parse product values",
912+ // "how-to-collect-products.md": "How to collect products",
913+ // "how-to-collect-product-variations.md": "How to collect product variations",
914+ // "how-to-get-families-and-attributes.md": "How to get families and attributes",
915+ // "how-to-publish-your-app.md": "How to publish your App",
916916 } ;
917917
918- let isOnePage = false ;
918+ const isOnePage = false ;
919919
920- return gulp . src ( 'content/tutorials/*.md' )
920+ return gulp . src ( 'content/tutorials/guides/ *.md' )
921921 . pipe ( flatmap ( function ( stream , file ) {
922- return gulp . src ( 'content/tutorials/*.md' )
922+ return gulp . src ( 'content/tutorials/guides/ *.md' )
923923 . pipe ( insert . wrap ( "::::: mainContent\n" , "\n:::::" ) )
924924 . pipe ( insert . prepend ( getTocMarkdown ( isOnePage , pages , path . basename ( file . path ) , '/tutorials' ) + "\n" ) )
925925 . pipe ( gulpMarkdownIt ( md ) )
0 commit comments