Code Monkey home page Code Monkey logo

Comments (6)

machour avatar machour commented on August 20, 2024

Hi @revelt,

For me, the all-contributors specification isn't about the format of the table, it's about the known contributions type, and reminding maintainers to give credit where it's due. The specification is in another repo: all-contributors

all-contributors-cli is just a tool that help keeping up with contributions, and that additionally generates a nice table for you. You can even customize the rendering, so there's pretty much nothing official (eg, specification) about this tool.

And as rendering can be customized, I don't see a (easy) way to parse the generated markdown.

In other words, anyone can write his own tool and maintain/render contributors the way he wants, this tool simply implements one of the ways to do that.

/cc @kentcdodds to correct me if my vision of things is wrong.

from cli.

revelt avatar revelt commented on August 20, 2024

@machour I understand your point. Yes, all-contributors spec is a different thing. I'm looking for a different spec. Spec for "default" table generation.

Do you agree that all-contributors-cli has a a default preset among its code, against which it generates the default table (if there are no customisations)? I'd like to tap this default preset (string generator function) in a shape of external lib. Because there is one, and it should be separate from the rest of CLI code...

As I mentioned #54 added bold around labels, for example, and in such way, mutated the "default" table preset. If other tools would like to generate contrib tables, compatible with this tool, that would break compatibility. Tables from other tools would generate contrib tables without b tags (using #54 case as example) until it was updated.

Separating CLI into parts would promote the ecosystem of compatible apps that generate the same "default" contrib table style.

Do you see my point?

from cli.

machour avatar machour commented on August 20, 2024

@revelt I understand your point, but again, for me, there's nothing official about all-contributors-cli, nor about the default table it generates.
I personally don't like the idea of splitting it across different parts. It's a simple tool and should stay as simple as possible (this is my opinionated opinion).

Do you know of any other tool that generates a contributor list based on the spec? Would you like to see some changes in this tool?

from cli.

revelt avatar revelt commented on August 20, 2024

Do you know of any other tool that generates a contributor list based on the spec?

I'm about to release one. Before I do release it I'd be keen to tap the "official" string generator so it's output is guaranteed to be compatible with this CLI, hence me pestering you guys here.

Would you like to see some changes in this tool?

No. Having said that, I prefer to keep contributors in package.json and have no all-contributors config at all. I'm using format-package so I have no trouble to visually-grep through the package.json contents.

from cli.

kentcdodds avatar kentcdodds commented on August 20, 2024

Feel free to do whatever you like with the format and stuff. I don't care to much about the format. And I don't think it's worth trying to standardize.

Thanks for building a tool! Make sure to make a pull request to the spec repo when you're done! 👏

from cli.

revelt avatar revelt commented on August 20, 2024

An update.

After github selling us out, I moved all my libraries to Bitbucket. But it doesn't support HTML in readme's! This also means, we can't use Prettier ignore blocks and Prettier mangles both doctoc TOC and Contributor's tables.

I'll research ways to generate Bitbucket Contributors tables, but first need to complete the migration from Github.

Either way, now I believe in readme maintenance automation and processing it comprehensively. Just a single CLI is not a solution, this task is only a piece of a larger puzzle.

So, I'll close; thank you everybody for attention 👍

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.