Re: PHP-Gtk2-Docs are ready for doccing!
| From: | Andrei Zmievski | Date: | Sat, 23 Apr 2005 02:12:18 +0000 |
| Subject: | Re: PHP-Gtk2-Docs are ready for doccing! | ||
| References: | 1 2 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-1407@lists.php.net to get a copy of this message | ||
Christian,
Some notes on doc generation.
1. The signal parameter definition is missing the actual signal widget.
<signal id="gtk.gtkbutton.signal.clicked">
<signalname>clicked</signalname>
<funcsynopsis>
<funcprototype>
<funcdef>void <cbfunction>callback</cbfunction></funcdef>
<paramdef>void</paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
</shortdesc>
<desc>
</desc>
</signal>
2. It doesn't look like you're generating the interface docs. I couldn't find GtkEditable, for example. Also, we need to make sure that class index page says which interfaces the class implements.
3. Can we split up the classtree page by module? Mixing classes from Pango, Atk, Gdk, and Gtk on one page is confusing.
4. It seems you are generating method descriptions even for those methods that have unsupported parameter types. It will be confusing having them in the manual if the actual method doesn't exist.
-Andrei
On Apr 22, 2005, at 1:24 PM, Christian Weiske wrote:
Hi Madeleine,Back to my original question. What do we need to know to help out?1. First, you need a cvs client. If you're on windows, you could install a cygwin/mingw32 environment or use wincvs. 2. check out the docs viacvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk-doc3. Have a look at the manual/en/ directory, all the source files for the english documentation are there. 4. Select a topic you want to write. 5. Make an example script which covers all the things resp. all the functions of the class - that helps to understand what the functions do 6. Maybe you should have a look at the pygtk and gtk2 manual and what they write on this function 7. Write the docs. If you don't know docbook, you could have a look at the old php-gtk documentation. Check it out withcvs -d :pserver:cvsread@cvs.php.net:/repository co -r PHP_GTK_1php-gtk-doc and look how it's done there. The most important tags: <para> is the base for every textual description, but can contain nearly every other tag. <simpara> is for simple textual descriptions. Surround class names with <classname> to have them linked automatically. Surround parameter names with <parameter> tags. You can link to other parts of the manual with this tags: <function class="GtkWidget">drag_dest_unset</function> <signalname class="GtkWidget">drag-data-received</signalname> If you checked out the old docs, look at gtk.gtkwidget.method.drag_dest_set for a good example. 8. If you've installed an xslt processor, you can generate the manual with./gen_manual.sh en htmlIf you don't have a cvs account, you can send the changed files to me and I will commit them. If you know you're willing to actively help further with more parts of the manual, get a cvs account for php. Use this page then: http://www.php.net/cvs-php.php Hope this helps a bit. Just ask if something is not clear. @all: maybe we should add a "doccing-howto" to the manual. This mail might be a (good?) start. Regards/MfG, Christian Weiske -- XMMS is playing now: Reamonn - Falling Down