All those commits lately..
| From: | Steph | Date: | Thu, 19 Jun 2003 16:03:55 +0000 |
| Subject: | All those commits lately.. | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-809@lists.php.net to get a copy of this message | ||
... affect all authors across all translations.
Please could you all make sure you have a clean CVS checkout before you
start writing again?
The changes affecting everybody are as follows:
1) You no longer need to add () to a function's name when you refer to
that function inline. XSL adds those for us (in line with PHP docs),
and also adds "" quotemarks around signal names (in line with GTK+
docs). If you add either of those things, they will appear twice over
in the generated documentation.
2) The way you write a programlisting has changed to a more standard
approach. We now use:
<para>
<informalexample>
<programlisting>
<![CDATA[
<?php
/*loads of code*/
?>
]]>
</programlisting>
</informalexample>
</para>
If you don't want the <?php ?> tags, don't put them in :)
If you want the programlisting to be inline, i.e. it's a single line or
something like this, it's okay to use the <literal> tag, but this alone
won't provide any spacing. If I've done this somewhere and you don't
like it, feel free to alter it to <programlisting> as above.
3) Output should be given in a <screen> tag.
Reasons for changes? Primarily, an experiment going on in the
background to see if we can use livedocs. (So far it looks possible in
a limited kinda way, but I'm sure Alan will extend that once I throw my
hands up in the air and start screaming.) Livedocs expects standard
xml, and ours wasn't entirely standard in the above areas. It is, now.
Cheers all,
- Steph