awesomo icon indicating copy to clipboard operation
awesomo copied to clipboard

Generate lists dynamically, based on JSON file

Open lk-geimfari opened this issue 3 years ago • 5 comments

We'll create a JSON file with following structure:

[
  {
    "language": "C",
    "projects": [
      {
        "name": "Project",
        "description": "Description",
        "url": "https://github.com/user/repository",
        "image_url": "https://example.org/example.png"
      },
      {
        "name": "Project 2",
        "description": "Description 2",
        "url": "https://github.com/user/repository",
        "image_url": "https://example.org/example.png"
      }
    ]
  },
  {
    "language": "C++",
    "projects": [
      {
        "name": "Project",
        "description": "Description",
        "url": "https://github.com/user/repository",
        "image_url": "https://example.org/example.png"
      }
    ]
  }
]

based on which all the lists of projects will be generated (using Github Actions).

lk-geimfari avatar Sep 16 '22 18:09 lk-geimfari

I'm very new to open-source contribution, so bear with me : )

So provided .JSON file of the projects, the action will basically re-create /languages folder?

G0maa avatar Oct 11 '22 14:10 G0maa

I'm very new to open-source contribution, so bear with me : )

So provided .JSON file of the projects, the action will basically re-create /languages folder?

Right!

lk-geimfari avatar Oct 11 '22 15:10 lk-geimfari

Ok I'll try playing around it for a bit... does the .JSON file of all existing projects in /languages exist or is that a sub-task within the issue? 👀

G0maa avatar Oct 12 '22 13:10 G0maa

Ok, I played a bit with it, see: https://github.com/G0maa/awesomo/tree/testing-script

Since there'd be lots of non-needed commits (because of testing workflow) I will create another branch and PR it, if the current solution passes. @lk-geimfari

G0maa avatar Oct 13 '22 05:10 G0maa

@lk-geimfari Hello?

G0maa avatar Oct 20 '22 06:10 G0maa

Closed as completed? Was it really done?

Zireael07 avatar Feb 28 '24 08:02 Zireael07