cvs: pear /PhpDocumentor/tutorials/phpDocumentor tutorials.pkg

From: Date: Mon, 07 Apr 2008 11:44:01 +0000
Subject: cvs: pear /PhpDocumentor/tutorials/phpDocumentor tutorials.pkg
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-51829@lists.php.net to get a copy of this message
ashnazg Mon Apr 7 11:44:01 2008 UTC Modified files: /pear/PhpDocumentor/tutorials/phpDocumentor tutorials.pkg Log: PEAR #13599 Third Gotcha on Bare Minimum Tutorial example http://cvs.php.net/viewvc.cgi/pear/PhpDocumentor/tutorials/phpDocumentor/tutorials.pkg?r1=1.3&r2=1.4&diff_format=u Index: pear/PhpDocumentor/tutorials/phpDocumentor/tutorials.pkg diff -u pear/PhpDocumentor/tutorials/phpDocumentor/tutorials.pkg:1.3 pear/PhpDocumentor/tutorials/phpDocumentor/tutorials.pkg:1.4 --- pear/PhpDocumentor/tutorials/phpDocumentor/tutorials.pkg:1.3 Thu May 31 00:51:28 2007 +++ pear/PhpDocumentor/tutorials/phpDocumentor/tutorials.pkg Mon Apr 7 11:44:01 2008 @@ -56,6 +56,7 @@ </para> <para>One common &quot;gotcha&quot; here is ensuring that you name the PKG file and its parent directory with your package's exact name, as well as ensuring you have indeed used the &quot;@package MyApp&quot; tag in your codebase. Running PhpDocumentor against this minimal tutorial file, when no PHP files use this package name, will NOT result in your tutorial being generated.</para> <para>A second common &quot;gotcha&quot; is that if you attempt to run PhpDocumentor against ONLY the tutorial directory and its files, you'll get &quot;ERROR: nothing parsed&quot;... because you did not give PhpDocumentor any PHP files to process. PhpDocumentor does need at least one &quot;code&quot; file to process, along with the tutorials, in order for any tutorials to be generated. This is a common mistake when first trying to write tutorial docs... writing the files and then trying to run PhpDocumentor against ONLY the tutorials directory to test your tutorial files. You will need at least one PHP file included in your test run, to avoid getting &quot;ERROR: nothing parsed&quot;.</para> + <para>A third &quot;gotcha&quot; can occur when you make your tutorial for your package and expect that the top-level index.html file will show its content, only to see an empty page showing little more than &quot;Welcome to default!&quot;. What has happened is that the default package name for a documentation generation is "default", so unless you specify &quot;--defaultpackagename MyApp&quot;, then your resulting top-level index.html file wants to tie itself to a &quot;default.pkg&quot; tutorial file for the &quot;default&quot; package, which does not exist, and it therefore decides there is no tutorial and instead displays that generic &quot;Welcome&quot; message.</para> </refsect2> <refsect2 id="{@id naming}"> <title>Naming tutorials: .pkg, .cls, .proc</title> @@ -205,4 +206,4 @@ <title>What next?</title> <para>Write your tutorials and extended documentation!</para> </refsect1> -</refentry> \ No newline at end of file +</refentry>

« previous php.pear.cvs (#51829) next »