erlang-punch / awesome-erlang

An (accurate) list of awesome Erlang resources
44 stars 8 forks source link

Create an interface to deal with item list #1

Closed niamtokik closed 11 months ago

niamtokik commented 1 year ago

At this time, all items are added manually (or with the help of an elisp script). That's annoyingly not efficient. In fact, it's even counterproductive, when we need to update the file, it takes a really long and painful moment to do so. The idea is to extract only the required information, if possible from a textual database stored in the repository (we can call it state file) and with the help of few script, fetch automatically all information required to generate the awesome list. The minimal information required are:

NOTE: application and libraries present directly in OTP tree are also quite important. A way to collect their information should also be used.

What we could generate:

Few tests were done during the last days

niamtokik commented 1 year ago

Here another example of static page without loading made for poolboy, using only ascii and unicode. The idea is to generate README.md file with this kind of templates using github, gitlab, hex.pm and other API.


Here the sample for poolboy:


Here the sources:


  - <details><summary><b><a
    href="https://github.com/devinus/poolboy">poolboy</a></b>: A hunky
    Erlang worker pool factory.</summary><br/>

    - Repository: https://github.com/devinus/poolboy
    - Documentation: https://hexdocs.pm/poolboy/
    - Build: https://app.travis-ci.com/github/devinus/poolboy/pull_requests
    - Support: https://gratipay.com/devinus/
    - License(s): UNLICENSE, ISC
    <br/>

    | [Github](https://github.com/devinus/poolboy) | license | contributors | last-commit | open issues | stars | forks | repo-size | watchers |
    |--------| :-----: | :------------: | :-----------: | :-----------: | :-----: | :-----: | :---------: | :--: |
    |        | 🟒<br/>ISC  | 🟒<br/>[26](https://github.com/devinus/poolboy/graphs/contributors) | πŸ”΄<br/>[october 2018](https://github.com/devinus/poolboy/commit/master) | 🟑<br/>[21](https://github.com/devinus/poolboy/issues) | πŸ”΅<br/>1.5k | πŸ”΅<br/>347 | πŸ”΅<br/>3.42MB | πŸ”΅<br/>74 |

    | [Hex.pm](https://hex.pm/packages/poolboy) | version  | licenses | downloads | downloads/week | download/day |
    | :-----: | :--------: | :--------: | :---------: | :--------------: | :------------: |
    |        | πŸ”΅<br/>1.5.2 | πŸ”΅<br/>Apache 2.0 | 🟒<br/>69M | 🟒<br/>101k | 🟒<br/>20k | 

    </details>
niamtokik commented 1 year ago

Here a model using bbmustache to load automatically templates present in priv/templates: https://github.com/erlang-punch/awesome-erlang/blob/dev/awesome/awesome/src/awesome_template.erl