cvs: peardoc /en/guide/developers documentation.xml
| From: | Martin Jansen | Date: | Sat, 11 Jun 2005 16:12:24 +0000 |
| Subject: | cvs: peardoc /en/guide/developers documentation.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6295@lists.php.net to get a copy of this message | ||
mj Sat Jun 11 12:12:24 2005 EDT
Modified files:
/peardoc/en/guide/developers documentation.xml
Log:
* Added notes about testing the build with xmllint.
http://cvs.php.net/diff.php/peardoc/en/guide/developers/documentation.xml?r1=1.27&r2=1.28&ty=u
Index: peardoc/en/guide/developers/documentation.xml
diff -u peardoc/en/guide/developers/documentation.xml:1.27
peardoc/en/guide/developers/documentation.xml:1.28
--- peardoc/en/guide/developers/documentation.xml:1.27 Tue Mar 29 12:51:17 2005
+++ peardoc/en/guide/developers/documentation.xml Sat Jun 11 12:12:24 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.27 $ -->
+<!-- $Revision: 1.28 $ -->
<!--
WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING
THIS DOCUMENT YET.
@@ -297,54 +297,97 @@
<sect2 id="developers.documentation.testing">
<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>
+ <sect3 id="developers.documentation.testing.make">
+ <title>
+ Using <acronym>GNU</acronym> <command>make</command>
+ </title>
- <screen>
- <userinput>
+ <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>
peardoc$ autoconf
peardoc$ ./configure --with-lang=<replaceable>en</replaceable>
peardoc$ make html
- </userinput>
- </screen>
+ </userinput>
+ </screen>
- <para>
- If you want to build a language other than English,
- change <literal>en</literal>, above, to
- the appropriate language code.
- </para>
+ <para>
+ If you want to build a language other than English,
+ change <literal>en</literal>, above, to
+ the appropriate language code.
+ </para>
- <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>
+ 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 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>
+ </sect3>
- <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>
+ <sect3 id="developers.documentation.testing.xmllint">
+ <title>Using <command>xmllint</command></title>
- <screen>
- <userinput>
+ <para>
+ Alternatively one can use the
+ <command><ulink
url="&url.libxml.xmllint;">xmllint</ulink></command>
+ program that is part of the <ulink url="&url.libxml;">libxml2
+ toolkit</ulink>. This is especially useful for systems where
+ the <acronym>DSSSL</acronym>/<command>make</command> setup
+ does not work properly.
+ </para>
+
+ <para>
+ In addition to testing the well-formedness of the DocBook sources,
+ <command>xmllint</command> can also check the semantical
+ correctness with the help of RELAX NG schemas. The schema files
+ for DocBook are available as a ZIP package from
+ <ulink url="&url.docbook.schema;">docbook.org</ulink>.
+ After unzipping the package into the directory
+ <filename>relaxng/</filename> inside the
<filename>peardoc</filename>
+ source folder, one can run <command>xmllint</command> from the root
+ folder of the PEAR documentation as follows:
+ </para>
+
+ <para>
+ <command>
+ <userinput>
+ xmllint --valid --noout --relaxng relaxng/ manual.xml
+ </userinput>
+ </command>
+ </para>
+ </sect3>
+
+ <sect3 id="developers.documentation.testing.partial">
+ <title>Partial builds</title>
+
+ <para>
+ The build process (not the test builds, which are reasonably
+ quick) 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>
peardoc$ ./make-partial.php
Include about-pear? [NO]
Include guide-newmaint? [NO]
@@ -394,8 +437,9 @@
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>
+ </userinput>
+ </screen>
+ </sect3>
</sect2>
<sect2 id="developers.documentation.translating">