-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Checkout this link to find a code example of a similar problem
https://github.com/devonfw/architectures/blob/master/scripts/createTags.js
CreateTags is script to create a tags.json file, which will map tagged tutorials to its predefined tags.
It should be a dictionary made from the tags as key and a list of tutorials as value, similar to this example:
{
"Difficulty": {"Easy":["devonfw-ide"...], "Standard":[], "Hard":[]},
"Stack":{"devon4j":[],"devon4quarkus":[]},
"Accelerator":{"cobigen":[],"devonide":[]}
}
You could also list them like this:
{"Difficulty": [
{"tag": "Easy", "tutorials":["devonfw-ide"...]},
....]}
You will find the tags at the start of each tutorial in the index.ascii file.
On the '/tutorials' page we will have a filter option to find tutorials based on the ticked tags.
It should use this 'tutorials.json' to write the filter engine.