cvs: peardoc /en/guide/developers documentation.xml
| From: | Christian Weiske | Date: | Mon, 16 Apr 2007 13:15:26 +0000 |
| Subject: | cvs: peardoc /en/guide/developers documentation.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9643@lists.php.net to get a copy of this message | ||
cweiske Mon Apr 16 13:15:26 2007 UTC
Modified files:
/peardoc/en/guide/developers documentation.xml
Log:
Tell how to auto-generate files from source
http://cvs.php.net/viewvc.cgi/peardoc/en/guide/developers/documentation.xml?r1=1.39&r2=1.40&diff_format=u
Index: peardoc/en/guide/developers/documentation.xml
diff -u peardoc/en/guide/developers/documentation.xml:1.39
peardoc/en/guide/developers/documentation.xml:1.40
--- peardoc/en/guide/developers/documentation.xml:1.39 Sun Apr 15 14:45:31 2007
+++ peardoc/en/guide/developers/documentation.xml Mon Apr 16 13:15:26 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.39 $ -->
+<!-- $Revision: 1.40 $ -->
<!--
WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING
THIS DOCUMENT YET.
@@ -315,6 +315,36 @@
url="&url.pear.cvs.peardoc;en/guide/developers/documentation.xml">raw
XML for the file you are presently reading</ulink>.
</para>
+
+ <sect3 id="developers.documentation.writing.phpdocumentor">
+ <title>Using phpDocumentor to generate documentation templates</title>
+
+ <para>
+ Creating dozens of files, one for each function in each class of your
+ package is rather boring. Luckily, we have the PhpDocumentor in PEAR
+ which has a renderer to generate templates for your classes and methods.
+ </para>
+
+ <para>
+ Create a test directory and cd into it. Then, run the following command:
+ <command>
+ phpdoc -p on -f /path/to/my/package/source/File.php -t .
+ -o "XML:DocBook/peardoc2:default" -dc myPackageCategory
+ </command>
+ After creating the files, check if they are all ok and edit them - add
+ examples, additional documentation and remove unneccessary sections.
+ </para>
+
+ <note>
+ <para>
+ <command>phpdoc</command> generates
+ <emphasis>documentation templates</emphasis>. The generated docs are
+ by no mean complete, you need to edit them afterwards!
+ </para>
+ </note>
+
+ </sect3>
+
</sect2>
<sect2 id="developers.documentation.testing">