Static Site Generation Tutorials guide
[last update: June 27 2022 by [email protected]]
What is tutorial pages
To increase search queries about making plugins or apps for web pages, we decided to make many pages with different content, meta and urls to cash in on the search engine. Each page of the tutorial provides guidance on how to create a plugin or app on a chosen platform, such as shopify, wix, etc.
Entities to make tutorial page
App Details- provides a data about choosen app and has data aboutapp_type, slug, alias, tagsand etcapp_typeis app name to identifyslugapp name to find hisApp Slug Simple Copyaliasis a fatherApp Detailof thisApp Detail- other fields is for fill content of the tutorial page
App Slug Simple Copy- internalisated (12s lang) version ofApp Detail'sslugfor urls and some content fieldsapp_detail_idis a relationship field for connecting toApp Detail
General Copies- provides content data with I18n translation by namenameidentification of the field to search for the required content datasentence_xtranslated to different language content data
Code guide
download_all.js- gets all needed data from strapi, stores asJSONas object to get data like ahash mapapi/tutorials.jsfile to manage data that has been saved asJSONand then from this data is created for pathes and parameters to draw the tutorialloccales.js- helper module to create localed url fromapp_details,paltformsandlocalepages/[locale]/[platformId]/[appId].jsis the root path to create paths and params for each page.[]- means responsive path.getStaticPaths()that calls creation of paths by localegetTutorialsByLocale.getTutorialDatagenerates params for content and meta of tutorial page fromplatformId,localizedAppSlugandlocale
components/supah_long.jsis the camponent that draws all the tutoral page