-
Notifications
You must be signed in to change notification settings - Fork 36
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
documentation extensions(?) #163
Comments
I realize now that the code this repo pulls from is actually on gitlab and am feeling silly. Should I open an issue over there? I would like to add to the docs if I'm allowed! |
This is the right place. Only pygobject itself is on gitlab atm. |
The docs are currently split into three part, mostly:
If the FYI is not Python specific it could/should go into the C documentation of the library so everyone benefits. We currently don't have anything in place for changing the docstrings besides for Python overrides. Can you give an example maybe?
What would the disclaimer be about roughly?
Thanks! |
The docs I am talking about are the latter two, but primarily the auto-docs generated. That said, I would absolutely love to write an extension or two for gtk+ specific manual because
So I guess I am a little confused over where the documentation "problem" is. This confusion may also determine whether I should just be writing up extensions to the gtk+ manual or to the auto-docs. Let me give an example as you have asked. I have experienced the following around 2-3 times with various little snippets of code, but here is what I most recently struggled with: I have a widget,
This sends me on a 20ish minute excursion into
Using my example above, I am not sure this warrants an editing of the c code itself. I think you would probably know where this is best done. What this disclaimer would look like is pretty simple, though. I just think a sentence along the lines of "If you are managing low level events, such as key presses, through GTK, you probably are looking for Such a disclaimer (for other functions/classes) are already often found in the auto-gen docs and have personally saved me lots of time. Where they are do not immediately come to mind, but I am grateful for where I have seen them in my journey across the documentation 🙂 |
On your specific problem/experience: The gtk documentation might be helpful: https://developer.gnome.org/gtk3/stable/chap-input-handling.html#event-masks
|
I think all three of your points are good ideas. Would you like assistance on any of these? |
Hi there
From what I understand, the documentation in this repository is generated automatically. However, there have been quite a few cases where I, as a new user of
gi
andGtk
generally, wasted 20-40 mins because of using the wrong function or class. This was/is due to the current state ofGtk
documentation and I understand how hard that can be to maintain.Nevertheless, I think many of the cases I experienced could be classified as beginner traps and easily mitigated with a one or two line "FYI" sentence at the end of docstrings for functions/classes that tripped me (and probably others) up.
Is there any chance we could add such "disclaimers" into the documentation? I feel such an addition would be a lot more useful than, say, me writing a blog post with lessons learned from developing my current Gtk app. I also feel this is more useful than scanning for
gi
related posts on stack overflow, which often are either massively outdated or are aboutgtk
directly and not python's bindings.I am interested in helping make documentation better if possible and don't know where else to posit my idea, so thank you for your time!
The text was updated successfully, but these errors were encountered: