mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted.git
synced 2026-03-09 11:43:52 -05:00
Add machine-readable section dividers #4542
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DennisCiba on GitHub (Aug 4, 2022).
Hi,
I am currently working on a little side-project trying to turn this list into a SPA. For this I am downloading and parsing the
README.mdandnon-free.md, which is somewhat cumbersome, especially since the format of those two files differs slightly.In order to make life easier for me (and others who might want to automatically parse the list) I was wondering if we cannot add section dividers as HTML comments in the markdown files, like this line already present in
non-free.md:c9fc08dbfe/non-free.md (L159)My suggestion would be:
<!-- BEGIN SOFTWARE LIST -->and<!-- END SOFTWARE LIST --><!-- BEGIN LICENSE LIST -->and<!-- END LICENSE LIST --><!-- BEGIN LINK LIST -->and<!-- END LINK LIST --><!-- BEGIN CATEGORY category_name -->and<!-- END CATEGORY category_name -->(e.g.<-- BEGIN CATEGORY Money, Budgeting and Management -->I can put in the work of adding this in the files, I just need to know that the idea is something that would be a welcome addition.
@Ki-er commented on GitHub (Aug 4, 2022):
I believe this is currently beihg tackled in #1038
@nodiscc commented on GitHub (Aug 4, 2022):
Hi @DennisCiba, you can use https://github.com/awesome-selfhosted/awesome-selfhosted-data
@DennisCiba commented on GitHub (Aug 4, 2022):
Looking into these, it seems that the efforts using a machine-readable format as the list database is still WIP (the issue is open since 2017). If I see it correctly the awesome-selfhosted-data project also does not include entries from
non-free.md, which is the problem I'm currently facing. I can parse theREADME.mdjust fine assuming that each category has a level 3 heading, but this assumption does not hold fornon-free.md, requiring additional logic for that file.I believe section dividers could be beneficial for #1038 as well, making it easier and more robust to import the initial list into machine-readable format.
@nodiscc commented on GitHub (Aug 4, 2022):
The system is already usable/close to completion, there are still a few missing features [1] , it's missing the automation setup to update/commit to the original repo when data is changed, and a date must be set for the final switch. In the mean time I have to update/reimport https://github.com/awesome-selfhosted/awesome-selfhosted-data manually semi-regularly (last update 3 days ago).
I just updated
non-free.mdto use level 3 headings:3dd58dfdb5The importer [1] works fine without section dividers. The exporter [2] would also have to be adapted. I'd like to avoid introducing special markup if list sections can be detected from the heading.
Edit:
<!-- END SOFTWARE LIST -->markers are there for legacy purposes/obsolete, they should have been removed a while ago.Did not think about this, I will have a look at it soon https://github.com/nodiscc/hecat/issues/57
@nodiscc commented on GitHub (Aug 5, 2022):
Fixed in https://github.com/awesome-selfhosted/awesome-selfhosted-data
Please open an issue on https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues if you think something should be added or changed.