cvs: pear /PhpDocumentor/tutorials/phpDocumentor tutorials.pkg
| From: | Chuck Burgess | 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 "gotcha" 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 "@package MyApp" 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 "gotcha" is that if you attempt to run
PhpDocumentor against ONLY the tutorial directory and its files, you'll get "ERROR:
nothing parsed"... because you did not give PhpDocumentor any PHP files to process.
PhpDocumentor does need at least one "code" 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 "ERROR: nothing parsed".</para>
+ <para>A third "gotcha" 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 "Welcome to default!". What has happened is that
the default package name for a documentation generation is "default", so unless you
specify "--defaultpackagename MyApp", then your resulting top-level index.html
file wants to tie itself to a "default.pkg" tutorial file for the
"default" package, which does not exist, and it therefore decides there is no
tutorial and instead displays that generic "Welcome" 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>