-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Add CONTRIBUTING.md #4146
Comments
Yes, this would be nice! |
I don't know what is the acceptance procedure, so I cannot write this doc. Who wants to do that? |
I can cover the new-plugin checklist part, assuming that everyone is OK with what we already have on the wiki. |
Yes, though it needs a little bit more info (charts.d is missing, several sections are python.d only, etc). It does not request updating this page: https://github.com/firehol/netdata/wiki/Add-more-charts-to-netdata It is also missing the infographic update. |
No infographics in CONTRIBUTING.md please. |
It should be updated somehow. If we don't add it there, we will have to do it... |
Yeah, it could stand to be updated somewhat.
Are we sure we want random people updating the infographic though? I mean, that's one of the primary marketing tools, so it would be really good to have a smaller group of people doing it as appropriate. Also, given the highly condensed format being used, it's not exactly something that's easy for people to update. |
CONTRIBUTING.md should be a simple text-only file. Not a book with pictures.
And it definitely shouldn't contain any marketing. |
We're talking about requiring updating the infographic in README.md as an item in the module submission checklist, not embedding an infographic in CONTRIBUTING.md. |
Sorry, I misunderstood you. |
You are probably right. This requires searching for a proper logo, adding it to a github issue to get a permanent high-speed URL, pasting it properly in draw.io to link the github URL - not the image itself, re-arranging a lot of other logos to make room, adding the new logo and linking it to the wiki page, saving the new infographic in png, adding it to a github issue to get another URL, editing README.md and the wiki home to replace the existing infographic image. So, yes, this is subject to a lot of errors... |
Blocked By: #4394 |
I am ok with that. |
Yes, those are two different things. |
I propose do do this in a file header. This way it will be easier to find a maintainer when a PR touching such file is created. |
Contributing tells people what they need to do. Documentation is one of the things they need to do, it was already required in the PR guidelines. Each module needs a readme |
Can you provide an example for a specific plugin? What would that header file look like? |
CONTRIBUTING.md should contain a short guide on how people can help, not what they need to do. |
As for header, simple: # Maintainers: @paulfantom will be enough. It is similar to current "Author" section ex. netdata/python.d/beanstalk.chart.py Line 3 in 1ad4f1b
|
I think we should. Now that we have moved all documentation inside the repo, it is clearly visible which sections are completely missing and which are not adequate. I do like a lot the new structure though. Code and documentation together. A paradise for contributors... I don't know of any other project that has embedded its documentation into the repo. Do you know any? We may be able to get a few ideas... |
I don't know of any that embed it as separate files, but I do know quite a few that do it as inline documentation in the code itself. See for example the various Python-based modules in Ansible, they all have a docstring for the module itself that contains all the actual documentation for the module. I'm actually kind of against that approach personally though, because it will produce a number of files that are more documentation than code, and it can lead to unnecessary memory overhead for Python modules (the whole docstring for the module stays in memory for the whole time the module is loaded, which would translate to a roughly 300k+ increase in runtime memory overhead for the python.d plugin with everything enabled). |
Also, When I finally get some time to work on it, I'll look at getting the python.d API documented in-tree. |
We can write |
A So:
Also, to avoid deduplication we should somehow modularized common things. For example, the way The happens for sockets binding |
Fixes #4146 Additional links to more detailed instructions per area will be added, as such instructions become available.
Fixes netdata#4146 Additional links to more detailed instructions per area will be added, as such instructions become available.
As we have some requirements before merging PR it would be good to create CONTRIBUTING.md doc with everything outlined.
Good template for such file is in https://github.com/nayafia/contributing-template
The text was updated successfully, but these errors were encountered: