cvs: peardoc /en/guide/developers documentation.xml
| From: | Martin Jansen | Date: | Tue, 15 Feb 2005 17:20:07 +0000 |
| Subject: | cvs: peardoc /en/guide/developers documentation.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5532@lists.php.net to get a copy of this message | ||
mj Tue Feb 15 12:20:07 2005 EDT
Modified files:
/peardoc/en/guide/developers documentation.xml
Log:
* Added basic instructions for generating human-readable versions of the
manual.
http://cvs.php.net/diff.php/peardoc/en/guide/developers/documentation.xml?r1=1.22&r2=1.23&ty=u
Index: peardoc/en/guide/developers/documentation.xml
diff -u peardoc/en/guide/developers/documentation.xml:1.22
peardoc/en/guide/developers/documentation.xml:1.23
--- peardoc/en/guide/developers/documentation.xml:1.22 Sun Jun 6 16:18:51 2004
+++ peardoc/en/guide/developers/documentation.xml Tue Feb 15 12:20:06 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.22 $ -->
+<!-- $Revision: 1.23 $ -->
<!--
WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING
THIS DOCUMENT YET.
@@ -277,6 +277,105 @@
</sect2>
<sect2>
+ <title>Testing documentation</title>
+
+
+ <para>
+ Generating human-readable versions of the DocBook sources requires
+ the existance of the above-mentioned software. The PEAR
+ documentation system uses Unix style makefiles:
+ </para>
+
+ <screen>
+ <userinput>
+$ cd peardoc
+$ ./configure
+$ make html
+ </userinput>
+ </screen>
+
+ <para>
+ This will generate a "raw" <acronym>HTML</acronym>
+ version of the whole manual. The result will be placed in the
+ subdirectory <filename>html/</filename>.
+ </para>
+
+ <para>
+ The command <command>make test</command> does not generate any
+ human-readable result, but it can be used to make sure that the
+ <acronym>XML</acronym> is syntactically correct and that the build
+ runs fine. And it is much faster than <command>make html</command>.
+ </para>
+
+ <para>
+ The build process actually takes a very long time which makes
+ debugging and testing a very hard task. In order to increase build
+ performance, the script <filename>make-partial.php</filename> in
+ the root directory of the documentation module may be used. This
+ is an interactive command line script that will enable to you to
+ selectively include the different parts of the manual. In the
+ following example a version of the manual is generated which only
+ contains a certain part of the Developer's Guide and the
+ documentation for the <acronym>HTTP</acronym> packages. Using
+ these partial builds reduces the build time dramatically.
+ </para>
+
+ <screen>
+ <userinput>
+$ ./make-partial.php
+Include about-pear? [NO]
+Include guide-newmaint? [NO]
+Include guide-developers? [NO] y
+Include guide.developers.intro? [NO]
+Include guide.developers.meaning? [NO]
+Include guide.developers.contributing? [NO]
+Include guide.developers.packagedef? [NO]
+Include guide.developers.release? [NO]
+Include guide.developers.supporting? [NO]
+Include guide.developers.recommendations? [NO]
+Include guide.developers.documentation? [NO] y
+Include core? [NO]
+Include packages? [NO] y
+Include package.authentication? [NO]
+Include package.benchmarking? [NO]
+Include package.caching? [NO]
+Include package.configuration? [NO]
+Include package.console? [NO]
+Include package.database? [NO]
+Include package.datetime? [NO]
+Include package.encryption? [NO]
+Include package.fileformats? [NO]
+Include package.filesystem? [NO]
+Include package.gtk? [NO]
+Include package.html? [NO]
+Include package.http? [NO] y
+Include package.images? [NO]
+Include package.internationalization? [NO]
+Include package.logging? [NO]
+Include package.mail? [NO]
+Include package.math? [NO]
+Include package.networking? [NO]
+Include package.numbers? [NO]
+Include package.payment? [NO]
+Include package.pear? [NO]
+Include package.php? [NO]
+Include package.science? [NO]
+Include package.streams? [NO]
+Include package.structures? [NO]
+Include package.system? [NO]
+Include package.text? [NO]
+Include package.tools? [NO]
+Include package.xml? [NO]
+Include package.webservices? [NO]
+Include pecl? [NO]
+CONFIG_FILES=manual.xml CONFIG_HEADERS= ./config.status
+creating manual.xml
+/usr/bin/jade -wno-idref -d html.dsl -V use-output-dir -t sgml ./phpdocxml.dcl manual.xml
+ </userinput>
+ </screen>
+ </sect2>
+
+ <sect2>
<title>Translating documentation</title>
<para>
Translating documentation is another important task.