gbdev.github.io icon indicating copy to clipboard operation
gbdev.github.io copied to clipboard

Automate the merge from the List

Open avivace opened this issue 5 years ago • 6 comments

This has been done manually, as a proof of concept. It should be trivially implementable.

avivace avatar Jan 03 '20 09:01 avivace

What needs to be done?

ISSOtm avatar Jan 05 '22 22:01 ISSOtm

What needs to be done?

The list in this repository is based on the README.md in the awesome-gbdev, but a lot of custom elements are added, such as the video players, the "info" message about the disambiguation GB/GBA etc...

We would need some way to template the base list and "render" it into this way, possibly with commented lines so the one in the awesome-gbdev remains clean (this pontential solution is mentioned in https://github.com/gbdev/awesome-gbdev/issues/203)

avivace avatar Jan 06 '22 18:01 avivace

The Markdown could be parsed into a list of lists (categories of entries), and that processed somehow. Replacements like "insert this between category X and Y", "process entry E thusly", etc.

ISSOtm avatar Jan 06 '22 18:01 ISSOtm

The Markdown could be parsed into a list of lists (categories of entries), and that processed somehow. Replacements like "insert this between category X and Y", "process entry E thusly", etc.

It's an interesting proposal, thanks ISSO. For sure better than keeping unrelated code in the source list (even if commented).

Considering our list is linted by awesome-lint (actually our version of it: https://github.com/gbdev/list-linter) it's already consistent to the point we could do that, but there's still a lot of spare and custom text around that would make it fail.

avivace avatar Jan 06 '22 19:01 avivace

I'd suggest trying to go at it anyway, and seeing what hurdles come up. It may be possible to simply ignore these elements, pass them through without any processing, or give them some special treatment as with the rest, for example.

ISSOtm avatar Jan 06 '22 19:01 ISSOtm

I'd suggest trying to go at it anyway, and seeing what hurdles come up. It may be possible to simply ignore these elements, pass them through without any processing, or give them some special treatment as with the rest, for example.

Ok, but it would be super low priority for me, as manually merging the list is not a big deal anyway and it happens once(maybe twice) a year. Ping me if you have time for tests

avivace avatar Jan 08 '22 23:01 avivace