Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving away from a single markdown file? #190

Closed
kud1ing opened this issue Aug 12, 2016 · 13 comments
Closed

Moving away from a single markdown file? #190

kud1ing opened this issue Aug 12, 2016 · 13 comments

Comments

@kud1ing
Copy link
Contributor

kud1ing commented Aug 12, 2016

Since the Markdown file has grown a bit, i am considering extracting the data to a file (maybe JSON) and generating HTML from it.

Disadvantages:

  • there is an additonal generator step
  • contributors might expect a Markdown file

Advantages:

  • the data file could be reused easier by other projects
  • entries can show up in multiple sections without duplicating data
  • less boilerplate code for contributors, less possibilities for errors
  • the data can be checked and enriched easier. E.g. a script could check whether the links in the data file are correct or whether projects have (now) working Travis/Cargo URLs
  • no manual sorting necessary anymore
  • consistent output format across all entries
  • the output format can be adjusted easier in the generator
@kud1ing kud1ing changed the title Moving away from a single markdown file Moving away from a single markdown file? Aug 12, 2016
@suhr
Copy link
Contributor

suhr commented Aug 12, 2016

See https://rust.libhunt.com/

@kud1ing
Copy link
Contributor Author

kud1ing commented Aug 12, 2016

@suhr As i see it, submitting data there is a one way street. I am fine with people doing that, it's just not for me (unrelated bad experience in the past).

@jeffparsons
Copy link
Contributor

I heartily support this move. One application I'd be keen on would be tagging of projects paired with (client-side) search.

@Anachron
Copy link

I hate JSON with a passion. Maybe it is because it cannot have comments?

I suggest using something like TOML instead.

@cetra3
Copy link

cetra3 commented Aug 12, 2016

How about you use my tool to combine them:

https://github.com/cetra3/mdcollate

@kud1ing
Copy link
Contributor Author

kud1ing commented Aug 12, 2016

@Anachron I am not a huge fan of JSON either, but my aversion for external code dependencies is greater. ;( Many scripting languages have built-in support for JSON.

@hauleth
Copy link
Contributor

hauleth commented Aug 12, 2016

For human readable format I would prefer YAML over JSON as is more flexible and easier to parse by wetware.

@Limeth
Copy link
Contributor

Limeth commented Aug 12, 2016

There are human-readable derivates of JSON. One of them is called HOCON, IIRC.

@hauleth
Copy link
Contributor

hauleth commented Aug 12, 2016

But why not use human-readable JSON superset - YAML?

Łukasz Niemier
lukasz@niemier.pl

Wiadomość napisana przez Jakub Hlusička notifications@github.com w dniu 12.08.2016, o godz. 20:28:

There are human-readable derivates of JSON. One of them is called HOCON, IIRC.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub #190 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AARzN39JU0Wa9q_xRYTuZCfcG9mYyTFLks5qfLtkgaJpZM4Ji2Zj.

@suhr
Copy link
Contributor

suhr commented Aug 12, 2016

@Anachron Do you hate JSON5 too?

PS: still, better to use TOML since it's much more popular.

@hauleth YAML is overengineered.

@Qard
Copy link

Qard commented Aug 12, 2016

I think this bikeshed should be painted blue. :trollface:

Seriously though, the storage format is irrelevant. The issue is not about which storage format is superior, it's about whether the content of this repo should be accessible as data and used to generate human-consumable pages.

Personally, I don't feel like there's a lot of value to content as data for this repo. Seems to me like the effort of building a generator and converting the existing content would far outweigh the small advantage of avoiding data duplication and sorting.

As a side note, there are already tools for validating links in markdown files, so you could just use those.

Personally, I'd rather just see the single markdown file split into multiple markdown files.

@pravic
Copy link
Contributor

pravic commented Aug 13, 2016

http://awesome-python.com for example. It is a single file too, but with TOC on left side.

@nasa42
Copy link

nasa42 commented Aug 15, 2016

Would the format of libs.rs be an acceptable replacement? This is basically just bunch of TOML files - https://github.com/nasa42/libs.rs/tree/master/categories (and some scripts to generate HTML files periodically).

@kud1ing happy to give you access to the libs.rs repository.

@kud1ing kud1ing closed this as completed Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants