cvs: peardoc /en/guide/developers documentation.xml
| From: | Christian Weiske | Date: | Sun, 15 Apr 2007 14:45:31 +0000 |
| Subject: | cvs: peardoc /en/guide/developers documentation.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9639@lists.php.net to get a copy of this message | ||
cweiske Sun Apr 15 14:45:31 2007 UTC
Modified files:
/peardoc/en/guide/developers documentation.xml
Log:
Link english test builds
http://cvs.php.net/viewvc.cgi/peardoc/en/guide/developers/documentation.xml?r1=1.38&r2=1.39&diff_format=u Index: peardoc/en/guide/developers/documentation.xml diff -u peardoc/en/guide/developers/documentation.xml:1.38 peardoc/en/guide/developers/documentation.xml:1.39 --- peardoc/en/guide/developers/documentation.xml:1.38 Sat Dec 16 16:46:38 2006 +++ peardoc/en/guide/developers/documentation.xml Sun Apr 15 14:45:31 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.38 $ --> +<!-- $Revision: 1.39 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -22,8 +22,8 @@ <para> This chapter provides a detailed description how to write - documentation using one of the supported formats. - + documentation using one of the supported formats. + It is aimed at both PEAR developers that are already maintaining packages in PEAR and at people who are planning to contribute a new package. @@ -36,24 +36,24 @@ <para> <ulink url="&url.docbook.xml;">DocBook</ulink> is an XML dialect that is used by a wide range of projects to maintain their - documentation. - + documentation. + Examples for DocBook usage in OpenSource projects are - the documentations of <ulink url="&url.kde;">KDE</ulink> and - <ulink url="&url.php;">PHP</ulink>. - - PEAR has opted for using DocBook, because we believe that it provides + the documentations of <ulink url="&url.kde;">KDE</ulink> and + <ulink url="&url.php;">PHP</ulink>. + + PEAR has opted for using DocBook, because we believe that it provides a solid foundation for the technical documentation for PEAR packages. </para> <para> - The trade-off for using DocBook is that it is relatively hard to use. + The trade-off for using DocBook is that it is relatively hard to use. + + Testing documentation requires a number of tools to be installed and one + needs to learn a (not very complicated) XML dialect. - Testing documentation requires a number of tools to be installed and one - needs to learn a (not very complicated) XML dialect. - Once one is familiar with how DocBook works, they will - enjoy writing documentation with it though. + enjoy writing documentation with it though. </para> <para> The book <ulink url="&url.docbook.book;"><citation>DocBook: The @@ -77,20 +77,20 @@ <para> Even if DocBook XML can (like any other XML file) be written using - a normal text editor, it is optimal for users to install some - software on their machine in order to test the validity - of the documenting efforts. - + a normal text editor, it is optimal for users to install some + software on their machine in order to test the validity + of the documenting efforts. + A list of the required software and a installation - instruction can be found in the + instruction can be found in the <ulink url="&url.php.manual.howto;">PHP Documentation - HOWTO</ulink>. - + HOWTO</ulink>. + Apart from providing information about the software, this HOWTO also provides a ton of other useful - information that goes far beyond this chapter. - - One is encouraged to completely read it. + information that goes far beyond this chapter. + + One is encouraged to completely read it. (Chapter II can be skipped, because it only contains information that is very PHP specific.) @@ -116,15 +116,15 @@ <para> Unfortunately, installing that software can be difficult - under some circumstances. - - If you are unable to get it working, - don't use that as an excuse for not writing documentation. + under some circumstances. + + If you are unable to get it working, + don't use that as an excuse for not writing documentation. There are two test servers that automatically download peardoc from CVS and build the manual. - Any parsing errors your changes cause will show up in the logs + Any parsing errors your changes cause will show up in the logs the next time the build happens: <simplelist> <member> @@ -141,24 +141,24 @@ These automatic builds also give you an idea of what your changes will look like in - the actual manual. - + the actual manual. + This is helpful because the manual on the PEAR website is only built once per week (Sundays ~12:00 UTC). <warning> <para> - The manual on the PEAR website is built only once per week. - - Any XML validation errors will cause the build to fail. - - If the main build fails, the old version remains in place, - meaning the manual will be out of date. - - Therefore, <emphasis>always</emphasis> check the test build logs - to ensure your changes are valid. - - More importantly, <emphasis>do not commit updates shortly before the + The manual on the PEAR website is built only once per week. + + Any XML validation errors will cause the build to fail. + + If the main build fails, the old version remains in place, + meaning the manual will be out of date. + + Therefore, <emphasis>always</emphasis> check the test build logs + to ensure your changes are valid. + + More importantly, <emphasis>do not commit updates shortly before the main build happens (Sundays ~12:00 UTC).</emphasis> </para> </warning> @@ -182,15 +182,15 @@ <para> If you do not own an account for cvs.php.net, please choose - <userinput>cvsread</userinput> as the username. - + <userinput>cvsread</userinput> as the username. + When asked for the password, type <userinput>phpfi</userinput>. </para> <para> After that the directory <filename>./peardoc</filename> will - contain a local copy (<quote>sandbox</quote>) of the latest sources. - + contain a local copy (<quote>sandbox</quote>) of the latest sources. + If you are not yet familiar with CVS, then the online book <ulink url="&url.cvs.book;"><quote>Open Source Development with CVS</quote></ulink> will provide you with all the necessary @@ -205,11 +205,11 @@ This chapter will not describe all the details about the directory structure, because one can find out the essentials about it by browsing the previously created directory - <filename>peardoc</filename>. - + <filename>peardoc</filename>. + As a starting point for package - documentors <filename>peardoc/en/package/</filename> fits well. - + documentors <filename>peardoc/en/package/</filename> fits well. + If one has further questions concerning the directory structure, they can ask on the <ulink url="mailto:&email.pear.doc;">documentation mailinglist</ulink>. @@ -254,11 +254,11 @@ The documentation for <classname>HTTP_Request</classname>, which is a relatively small package, only consists of a bunch of end-user documentation, which describes all of the basic - features of the package. - + features of the package. + Each feature description includes at - least one example. - + least one example. + For small packages with only a handful of methods this documentation type is absolutely enough. </simpara> @@ -272,8 +272,8 @@ <simpara> <classname>XML_Beautifier</classname> is a package that is also relatively compact, but which supports different configuration - options. - + options. + These options are described in the documentation Additionally the documentation gives usage examples and (unlike <classname>HTTP_Request</classname>) also @@ -291,8 +291,8 @@ The <classname>DB</classname> docs carefully adhere to the formatting specified in peardoc/authoring. The link above goes to the DocBook source code in - the CVS repository. - + the CVS repository. + It might be helpful to examine <link linkend="package.database.db">the HTML generated therefrom</link>. @@ -304,11 +304,11 @@ In addition to the examples above, you will find much more documentation examples by browsing the <filename>peardoc</filename> directory, which contains your local version of the CVS - tree. - + tree. + Especially the directory - <filename>peardoc/en/packages/</filename> should be of interest for you. - + <filename>peardoc/en/packages/</filename> should be of interest for you. + You can also browse the CVS module using the <ulink url="&url.pear.cvs.peardoc;">web interface</ulink>, including the <ulink @@ -327,7 +327,7 @@ <para> Generating human-readable versions of the DocBook sources requires - the existance of the above-mentioned software. + the existance of the above-mentioned software. The PEAR documentation system uses Unix style makefiles: </para> @@ -347,18 +347,18 @@ <para> This will generate a "raw" <acronym>HTML</acronym> - version of the whole manual. - - The result will be placed in the subdirectory + 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 + 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. - + runs fine. + And it is much faster than <command>make html</command>. </para> @@ -383,24 +383,24 @@ <title>Using <command>xmllint</command></title> <para> - Alternatively one can use the + 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>. - + 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 + 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 + 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: @@ -421,70 +421,70 @@ <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 + 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. - + 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 + 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. - + 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] +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.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 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.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] +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 @@ -518,6 +518,18 @@ </thead> <tbody> <row> + <entry>English</entry> + <entry> + <ulink url="&url.doc.test.build.2;en/">Build</ulink> + </entry> + <entry> + <ulink url="&url.doc.test.build.2;en/build.log">Log</ulink> + </entry> + <entry> + <ulink url="&url.doc.test.build.2;en/revcheck.html">Revcheck</ulink> + </entry> + </row> + <row> <entry>French</entry> <entry> <ulink url="&url.doc.test.build.2;fr/">Build</ulink> @@ -563,9 +575,9 @@ <simpara> We are well aware that we cannot cover all questions about writing - DocBook documentation in this chapter. - - If you have more questions or problems, + DocBook documentation in this chapter. + + If you have more questions or problems, do not hesitate to get in touch with the documentation team at <ulink url="mailto:&email.pear.doc;">&email.pear.doc;</ulink>. @@ -591,39 +603,39 @@ <orderedlist> <listitem> <para> - First, every package solves a problem. - + First, every package solves a problem. + What is this problem? - + Try to figure out what assumptions your end-users might not have about the problem (they may not realize that this is a problem - that needs solving). - - For instance, a template package solves the problem of both separating - design from code, and separating business logic from display logic. - - If possible, explain the problem in terms that even a novice + that needs solving). + + For instance, a template package solves the problem of both separating + design from code, and separating business logic from display logic. + + If possible, explain the problem in terms that even a novice programmer can understand. </para> </listitem> <listitem> <para> Next, how does the package uniquely solve the problem? This is - something that most documentation lacks. - - For example, there are many template engines. - + something that most documentation lacks. + + For example, there are many template engines. + All of them solve the same problem, but - none of them do it in the same way. - - A block-based template engine does not have any logic at all, - whereas a template like Smarty defines a whole new template language. - - Some template engines compile their templates, others don't. - - What is unique about your package? - - Can someone who has never seen the code get a good idea + none of them do it in the same way. + + A block-based template engine does not have any logic at all, + whereas a template like Smarty defines a whole new template language. + + Some template engines compile their templates, others don't. + + What is unique about your package? + + Can someone who has never seen the code get a good idea of how it solves the problem? </para> </listitem> @@ -631,9 +643,9 @@ <para> Provide examples! Start right away with simple examples that shows the basic feature set -- they will show users how to - quickly start using the package. - - More complex examples will help the users in understanding advanced + quickly start using the package. + + More complex examples will help the users in understanding advanced ways of using the package. </para> </listitem> @@ -642,8 +654,8 @@ If your package exposes complex interfaces or multiple constants that can't be fully explained in one or two examples (which is very likely), do not miss to explain them thoroughly in the - documentation. - + documentation. + Document any interfaces that users must use, such as a database DSN, command-line arguments for applications, configuration file contents, or any other non-code element. @@ -651,11 +663,11 @@ </listitem> <listitem> <para> - Last, proofread your documentation. - - If possible, have someone else who is not as familiar with your project - take a look at the documentation. - + Last, proofread your documentation. + + If possible, have someone else who is not as familiar with your project + take a look at the documentation. + They will catch assumptions that you have missed. </para> </listitem>
http://cvs.php.net/viewvc.cgi/peardoc/en/guide/developers/documentation.xml?r1=1.38&r2=1.39&diff_format=u Index: peardoc/en/guide/developers/documentation.xml diff -u peardoc/en/guide/developers/documentation.xml:1.38 peardoc/en/guide/developers/documentation.xml:1.39 --- peardoc/en/guide/developers/documentation.xml:1.38 Sat Dec 16 16:46:38 2006 +++ peardoc/en/guide/developers/documentation.xml Sun Apr 15 14:45:31 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.38 $ --> +<!-- $Revision: 1.39 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -22,8 +22,8 @@ <para> This chapter provides a detailed description how to write - documentation using one of the supported formats. - + documentation using one of the supported formats. + It is aimed at both PEAR developers that are already maintaining packages in PEAR and at people who are planning to contribute a new package. @@ -36,24 +36,24 @@ <para> <ulink url="&url.docbook.xml;">DocBook</ulink> is an XML dialect that is used by a wide range of projects to maintain their - documentation. - + documentation. + Examples for DocBook usage in OpenSource projects are - the documentations of <ulink url="&url.kde;">KDE</ulink> and - <ulink url="&url.php;">PHP</ulink>. - - PEAR has opted for using DocBook, because we believe that it provides + the documentations of <ulink url="&url.kde;">KDE</ulink> and + <ulink url="&url.php;">PHP</ulink>. + + PEAR has opted for using DocBook, because we believe that it provides a solid foundation for the technical documentation for PEAR packages. </para> <para> - The trade-off for using DocBook is that it is relatively hard to use. + The trade-off for using DocBook is that it is relatively hard to use. + + Testing documentation requires a number of tools to be installed and one + needs to learn a (not very complicated) XML dialect. - Testing documentation requires a number of tools to be installed and one - needs to learn a (not very complicated) XML dialect. - Once one is familiar with how DocBook works, they will - enjoy writing documentation with it though. + enjoy writing documentation with it though. </para> <para> The book <ulink url="&url.docbook.book;"><citation>DocBook: The @@ -77,20 +77,20 @@ <para> Even if DocBook XML can (like any other XML file) be written using - a normal text editor, it is optimal for users to install some - software on their machine in order to test the validity - of the documenting efforts. - + a normal text editor, it is optimal for users to install some + software on their machine in order to test the validity + of the documenting efforts. + A list of the required software and a installation - instruction can be found in the + instruction can be found in the <ulink url="&url.php.manual.howto;">PHP Documentation - HOWTO</ulink>. - + HOWTO</ulink>. + Apart from providing information about the software, this HOWTO also provides a ton of other useful - information that goes far beyond this chapter. - - One is encouraged to completely read it. + information that goes far beyond this chapter. + + One is encouraged to completely read it. (Chapter II can be skipped, because it only contains information that is very PHP specific.) @@ -116,15 +116,15 @@ <para> Unfortunately, installing that software can be difficult - under some circumstances. - - If you are unable to get it working, - don't use that as an excuse for not writing documentation. + under some circumstances. + + If you are unable to get it working, + don't use that as an excuse for not writing documentation. There are two test servers that automatically download peardoc from CVS and build the manual. - Any parsing errors your changes cause will show up in the logs + Any parsing errors your changes cause will show up in the logs the next time the build happens: <simplelist> <member> @@ -141,24 +141,24 @@ These automatic builds also give you an idea of what your changes will look like in - the actual manual. - + the actual manual. + This is helpful because the manual on the PEAR website is only built once per week (Sundays ~12:00 UTC). <warning> <para> - The manual on the PEAR website is built only once per week. - - Any XML validation errors will cause the build to fail. - - If the main build fails, the old version remains in place, - meaning the manual will be out of date. - - Therefore, <emphasis>always</emphasis> check the test build logs - to ensure your changes are valid. - - More importantly, <emphasis>do not commit updates shortly before the + The manual on the PEAR website is built only once per week. + + Any XML validation errors will cause the build to fail. + + If the main build fails, the old version remains in place, + meaning the manual will be out of date. + + Therefore, <emphasis>always</emphasis> check the test build logs + to ensure your changes are valid. + + More importantly, <emphasis>do not commit updates shortly before the main build happens (Sundays ~12:00 UTC).</emphasis> </para> </warning> @@ -182,15 +182,15 @@ <para> If you do not own an account for cvs.php.net, please choose - <userinput>cvsread</userinput> as the username. - + <userinput>cvsread</userinput> as the username. + When asked for the password, type <userinput>phpfi</userinput>. </para> <para> After that the directory <filename>./peardoc</filename> will - contain a local copy (<quote>sandbox</quote>) of the latest sources. - + contain a local copy (<quote>sandbox</quote>) of the latest sources. + If you are not yet familiar with CVS, then the online book <ulink url="&url.cvs.book;"><quote>Open Source Development with CVS</quote></ulink> will provide you with all the necessary @@ -205,11 +205,11 @@ This chapter will not describe all the details about the directory structure, because one can find out the essentials about it by browsing the previously created directory - <filename>peardoc</filename>. - + <filename>peardoc</filename>. + As a starting point for package - documentors <filename>peardoc/en/package/</filename> fits well. - + documentors <filename>peardoc/en/package/</filename> fits well. + If one has further questions concerning the directory structure, they can ask on the <ulink url="mailto:&email.pear.doc;">documentation mailinglist</ulink>. @@ -254,11 +254,11 @@ The documentation for <classname>HTTP_Request</classname>, which is a relatively small package, only consists of a bunch of end-user documentation, which describes all of the basic - features of the package. - + features of the package. + Each feature description includes at - least one example. - + least one example. + For small packages with only a handful of methods this documentation type is absolutely enough. </simpara> @@ -272,8 +272,8 @@ <simpara> <classname>XML_Beautifier</classname> is a package that is also relatively compact, but which supports different configuration - options. - + options. + These options are described in the documentation Additionally the documentation gives usage examples and (unlike <classname>HTTP_Request</classname>) also @@ -291,8 +291,8 @@ The <classname>DB</classname> docs carefully adhere to the formatting specified in peardoc/authoring. The link above goes to the DocBook source code in - the CVS repository. - + the CVS repository. + It might be helpful to examine <link linkend="package.database.db">the HTML generated therefrom</link>. @@ -304,11 +304,11 @@ In addition to the examples above, you will find much more documentation examples by browsing the <filename>peardoc</filename> directory, which contains your local version of the CVS - tree. - + tree. + Especially the directory - <filename>peardoc/en/packages/</filename> should be of interest for you. - + <filename>peardoc/en/packages/</filename> should be of interest for you. + You can also browse the CVS module using the <ulink url="&url.pear.cvs.peardoc;">web interface</ulink>, including the <ulink @@ -327,7 +327,7 @@ <para> Generating human-readable versions of the DocBook sources requires - the existance of the above-mentioned software. + the existance of the above-mentioned software. The PEAR documentation system uses Unix style makefiles: </para> @@ -347,18 +347,18 @@ <para> This will generate a "raw" <acronym>HTML</acronym> - version of the whole manual. - - The result will be placed in the subdirectory + 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 + 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. - + runs fine. + And it is much faster than <command>make html</command>. </para> @@ -383,24 +383,24 @@ <title>Using <command>xmllint</command></title> <para> - Alternatively one can use the + 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>. - + 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 + 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 + 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: @@ -421,70 +421,70 @@ <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 + 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. - + 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 + 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. - + 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] +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.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 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.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] +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 @@ -518,6 +518,18 @@ </thead> <tbody> <row> + <entry>English</entry> + <entry> + <ulink url="&url.doc.test.build.2;en/">Build</ulink> + </entry> + <entry> + <ulink url="&url.doc.test.build.2;en/build.log">Log</ulink> + </entry> + <entry> + <ulink url="&url.doc.test.build.2;en/revcheck.html">Revcheck</ulink> + </entry> + </row> + <row> <entry>French</entry> <entry> <ulink url="&url.doc.test.build.2;fr/">Build</ulink> @@ -563,9 +575,9 @@ <simpara> We are well aware that we cannot cover all questions about writing - DocBook documentation in this chapter. - - If you have more questions or problems, + DocBook documentation in this chapter. + + If you have more questions or problems, do not hesitate to get in touch with the documentation team at <ulink url="mailto:&email.pear.doc;">&email.pear.doc;</ulink>. @@ -591,39 +603,39 @@ <orderedlist> <listitem> <para> - First, every package solves a problem. - + First, every package solves a problem. + What is this problem? - + Try to figure out what assumptions your end-users might not have about the problem (they may not realize that this is a problem - that needs solving). - - For instance, a template package solves the problem of both separating - design from code, and separating business logic from display logic. - - If possible, explain the problem in terms that even a novice + that needs solving). + + For instance, a template package solves the problem of both separating + design from code, and separating business logic from display logic. + + If possible, explain the problem in terms that even a novice programmer can understand. </para> </listitem> <listitem> <para> Next, how does the package uniquely solve the problem? This is - something that most documentation lacks. - - For example, there are many template engines. - + something that most documentation lacks. + + For example, there are many template engines. + All of them solve the same problem, but - none of them do it in the same way. - - A block-based template engine does not have any logic at all, - whereas a template like Smarty defines a whole new template language. - - Some template engines compile their templates, others don't. - - What is unique about your package? - - Can someone who has never seen the code get a good idea + none of them do it in the same way. + + A block-based template engine does not have any logic at all, + whereas a template like Smarty defines a whole new template language. + + Some template engines compile their templates, others don't. + + What is unique about your package? + + Can someone who has never seen the code get a good idea of how it solves the problem? </para> </listitem> @@ -631,9 +643,9 @@ <para> Provide examples! Start right away with simple examples that shows the basic feature set -- they will show users how to - quickly start using the package. - - More complex examples will help the users in understanding advanced + quickly start using the package. + + More complex examples will help the users in understanding advanced ways of using the package. </para> </listitem> @@ -642,8 +654,8 @@ If your package exposes complex interfaces or multiple constants that can't be fully explained in one or two examples (which is very likely), do not miss to explain them thoroughly in the - documentation. - + documentation. + Document any interfaces that users must use, such as a database DSN, command-line arguments for applications, configuration file contents, or any other non-code element. @@ -651,11 +663,11 @@ </listitem> <listitem> <para> - Last, proofread your documentation. - - If possible, have someone else who is not as familiar with your project - take a look at the documentation. - + Last, proofread your documentation. + + If possible, have someone else who is not as familiar with your project + take a look at the documentation. + They will catch assumptions that you have missed. </para> </listitem>