flobrosch / valadoc-org

32 stars 5 forks source link

There is no examples (references to examples) on objects's properties, methods... #46

Open konkor opened 8 years ago

konkor commented 8 years ago

I would like to see more examples to object's properties at least to the base libraries like GLib, Gtk, Gdk... If it's possible i could try to help you. PS: There is very good examples to packages using many methods, properties and no references to used methods.

flobrosch commented 8 years ago

Hey konkor,

I am always open to add more examples. Our help-file contains a short description how to add new ones.

konkor commented 8 years ago

i found the glib-2.0/string.data property don't have examples but here is many examples to another objects which already using this string.data property. Example:

<example>
    <title>Base64, encode</title>
    <file>GLib.Base64.encode.vala</file>
    <compile>valac --pkg glib-2.0 GLib.Base64.encode.vala</compile>
    <node>GLib.Base64.encode</node>
    <node>string.data</node>
</example>

Do i need to add string.data string into glib-2.0/glib-2.0.valadoc.examples? PS: I have tried this but it didn't work. Do you have any proposes? So i can't build all libraries because i'm using Debian stable with gtk 3.14.

konkor commented 8 years ago

I found out to add property. After editing glib-2.0/glib-2.0.valadoc.examples i need delete valadoc-org/valadoc.org/glib-2.0 folder to recompile it. What do you think about this? It's not an academic example, but it's more than nothing and here is some usage example.