cvs: peardoc /en/guide/developers documentation.xml
| From: | Christophe Gesch� | Date: | Sun, 05 Nov 2006 07:59:53 +0000 |
| Subject: | cvs: peardoc /en/guide/developers documentation.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8716@lists.php.net to get a copy of this message | ||
moosh Sun Nov 5 07:59:53 2006 UTC
Modified files:
/peardoc/en/guide/developers documentation.xml
Log:
- indent source for easiest translation management.
http://cvs.php.net/viewvc.cgi/peardoc/en/guide/developers/documentation.xml?r1=1.33&r2=1.34&diff_format=u Index: peardoc/en/guide/developers/documentation.xml diff -u peardoc/en/guide/developers/documentation.xml:1.33 peardoc/en/guide/developers/documentation.xml:1.34 --- peardoc/en/guide/developers/documentation.xml:1.33 Wed Jul 26 20:03:08 2006 +++ peardoc/en/guide/developers/documentation.xml Sun Nov 5 07:59:53 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.33 $ --> +<!-- $Revision: 1.34 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -22,7 +22,9 @@ <para> This chapter provides a detailed description how to write - documentation using one of the supported formats. It is aimed at both + 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. </para> @@ -34,18 +36,23 @@ <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. Examples for DocBook usage in OpenSource projects are + 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 a solid foundation for - the technical documentation for PEAR packages. + <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. 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 + 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. + + Once one is familiar with how DocBook works, they will enjoy writing documentation with it though. </para> <para> @@ -70,33 +77,40 @@ <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 list of the required software and a installation + 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 <ulink url="&url.php.manual.howto;">PHP Documentation - HOWTO</ulink>. Apart from providing information about the software, + 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. (Chapter II can be skipped, because it only + 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.) </para> <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 + under some circumstances. + + If you are unable to get it working, + don't use that as an excuse for not writing documentation. <!-- - documentation. There are two test servers that every + There are two test servers that every two hours automatically download peardoc from CVS and - build the manual. Any parsing errors your changes cause - will show up in the logs the next time the build happens: + build the manual. --> - documentation. There is a test server that every - two hours automatically downloads peardoc from CVS and - builds the manual. Any parsing errors your changes cause - will show up in the logs the next time the build happens: + There is a test server that every two hours automatically downloads + peardoc from CVS and builds the manual. + + Any parsing errors your changes cause will show up in the logs + the next time the build happens: <simplelist> <member> <ulink url="&url.doc.test.build.1.log;"> @@ -121,8 +135,9 @@ --> This automatic build also gives you an idea of what your changes will look like in - the actual manual. This is helpful because the - manual on the PEAR website is only built once + the actual manual. + + This is helpful because the manual on the PEAR website is only built once per week (Sundays ~12:00 UTC). <simplelist> <member> @@ -139,15 +154,18 @@ <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 main build happens - (Sundays ~12:00 UTC).</emphasis> + 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> </para> @@ -170,14 +188,16 @@ <para> If you do not own an account for cvs.php.net, please choose - <userinput>cvsread</userinput> as the username. When asked for the - password, type <userinput>phpfi</userinput>. + <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. If you are not yet familiar with CVS, then the online + 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 information. @@ -191,9 +211,12 @@ 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>. As a starting point for package - documentors <filename>peardoc/en/package/</filename> fits well. If - one has further questions concerning the directory structure, they + <filename>peardoc</filename>. + + As a starting point for package + 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>. </para> @@ -237,8 +260,12 @@ 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. Each feature description includes at - least one example. For small packages with only a handful of + features of the package. + + Each feature description includes at + least one example. + + For small packages with only a handful of methods this documentation type is absolutely enough. </simpara> </listitem> @@ -251,7 +278,9 @@ <simpara> <classname>XML_Beautifier</classname> is a package that is also relatively compact, but which supports different configuration - options. These options are described in the documentation + options. + + These options are described in the documentation Additionally the documentation gives usage examples and (unlike <classname>HTTP_Request</classname>) also includes API documentation for its methods. @@ -268,7 +297,9 @@ 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. It might be helpful to examine + the CVS repository. + + It might be helpful to examine <link linkend="package.database.db">the HTML generated therefrom</link>. </simpara> @@ -279,9 +310,12 @@ 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. Especially the directory - <filename>peardoc/en/packages/</filename> should be of interest for - you. You can also browse the CVS module using the <ulink + tree. + + Especially the directory + <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 url="&url.pear.cvs.peardoc;en/guide/developers/documentation.xml">raw @@ -299,8 +333,8 @@ <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: + the existance of the above-mentioned software. + The PEAR documentation system uses Unix style makefiles: </para> <screen> @@ -319,15 +353,19 @@ <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>. + 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>. + runs fine. + + And it is much faster than <command>make html</command>. </para> </sect3> @@ -338,7 +376,9 @@ 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 + toolkit</ulink>. + + This is especially useful for systems where the <acronym>DSSSL</acronym>/<command>make</command> setup does not work properly. </para> @@ -346,8 +386,9 @@ <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 + 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> @@ -370,15 +411,20 @@ <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. + 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> @@ -443,7 +489,9 @@ Translating documentation is another important task. Not only does new documentation need to be translated into the existing languages, additional languages are - welcome. Also, existing translations need to be brought + welcome. + + Also, existing translations need to be brought up to date because the English versions have been changed. Help on how to perform the translation process is in the <link linkend="faq.translators-revision-tracking">Revision Tracking</link> @@ -456,8 +504,10 @@ <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, do not hesitate to get in touch with the documentation + 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>. To join the pear-doc list send an email to <ulink @@ -482,34 +532,50 @@ <orderedlist> <listitem> <para> - First, every package solves a problem. What is this 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 programmer can understand. + 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. 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 of how it solves the problem? + 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 + of how it solves the problem? </para> </listitem> <listitem> <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 ways of using the package. + quickly start using the package. + + More complex examples will help the users in understanding advanced + ways of using the package. </para> </listitem> <listitem> @@ -517,16 +583,21 @@ 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. Document any interfaces that users must use, such + 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. </para> </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. They will catch assumptions that you have missed. + 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> </orderedlist>
http://cvs.php.net/viewvc.cgi/peardoc/en/guide/developers/documentation.xml?r1=1.33&r2=1.34&diff_format=u Index: peardoc/en/guide/developers/documentation.xml diff -u peardoc/en/guide/developers/documentation.xml:1.33 peardoc/en/guide/developers/documentation.xml:1.34 --- peardoc/en/guide/developers/documentation.xml:1.33 Wed Jul 26 20:03:08 2006 +++ peardoc/en/guide/developers/documentation.xml Sun Nov 5 07:59:53 2006 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.33 $ --> +<!-- $Revision: 1.34 $ --> <!-- WORK IN PROGRESS, THERE IS PROBABLY LITTLE POINT IN TRANSLATING THIS DOCUMENT YET. @@ -22,7 +22,9 @@ <para> This chapter provides a detailed description how to write - documentation using one of the supported formats. It is aimed at both + 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. </para> @@ -34,18 +36,23 @@ <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. Examples for DocBook usage in OpenSource projects are + 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 a solid foundation for - the technical documentation for PEAR packages. + <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. 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 + 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. + + Once one is familiar with how DocBook works, they will enjoy writing documentation with it though. </para> <para> @@ -70,33 +77,40 @@ <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 list of the required software and a installation + 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 <ulink url="&url.php.manual.howto;">PHP Documentation - HOWTO</ulink>. Apart from providing information about the software, + 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. (Chapter II can be skipped, because it only + 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.) </para> <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 + under some circumstances. + + If you are unable to get it working, + don't use that as an excuse for not writing documentation. <!-- - documentation. There are two test servers that every + There are two test servers that every two hours automatically download peardoc from CVS and - build the manual. Any parsing errors your changes cause - will show up in the logs the next time the build happens: + build the manual. --> - documentation. There is a test server that every - two hours automatically downloads peardoc from CVS and - builds the manual. Any parsing errors your changes cause - will show up in the logs the next time the build happens: + There is a test server that every two hours automatically downloads + peardoc from CVS and builds the manual. + + Any parsing errors your changes cause will show up in the logs + the next time the build happens: <simplelist> <member> <ulink url="&url.doc.test.build.1.log;"> @@ -121,8 +135,9 @@ --> This automatic build also gives you an idea of what your changes will look like in - the actual manual. This is helpful because the - manual on the PEAR website is only built once + the actual manual. + + This is helpful because the manual on the PEAR website is only built once per week (Sundays ~12:00 UTC). <simplelist> <member> @@ -139,15 +154,18 @@ <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 main build happens - (Sundays ~12:00 UTC).</emphasis> + 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> </para> @@ -170,14 +188,16 @@ <para> If you do not own an account for cvs.php.net, please choose - <userinput>cvsread</userinput> as the username. When asked for the - password, type <userinput>phpfi</userinput>. + <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. If you are not yet familiar with CVS, then the online + 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 information. @@ -191,9 +211,12 @@ 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>. As a starting point for package - documentors <filename>peardoc/en/package/</filename> fits well. If - one has further questions concerning the directory structure, they + <filename>peardoc</filename>. + + As a starting point for package + 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>. </para> @@ -237,8 +260,12 @@ 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. Each feature description includes at - least one example. For small packages with only a handful of + features of the package. + + Each feature description includes at + least one example. + + For small packages with only a handful of methods this documentation type is absolutely enough. </simpara> </listitem> @@ -251,7 +278,9 @@ <simpara> <classname>XML_Beautifier</classname> is a package that is also relatively compact, but which supports different configuration - options. These options are described in the documentation + options. + + These options are described in the documentation Additionally the documentation gives usage examples and (unlike <classname>HTTP_Request</classname>) also includes API documentation for its methods. @@ -268,7 +297,9 @@ 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. It might be helpful to examine + the CVS repository. + + It might be helpful to examine <link linkend="package.database.db">the HTML generated therefrom</link>. </simpara> @@ -279,9 +310,12 @@ 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. Especially the directory - <filename>peardoc/en/packages/</filename> should be of interest for - you. You can also browse the CVS module using the <ulink + tree. + + Especially the directory + <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 url="&url.pear.cvs.peardoc;en/guide/developers/documentation.xml">raw @@ -299,8 +333,8 @@ <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: + the existance of the above-mentioned software. + The PEAR documentation system uses Unix style makefiles: </para> <screen> @@ -319,15 +353,19 @@ <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>. + 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>. + runs fine. + + And it is much faster than <command>make html</command>. </para> </sect3> @@ -338,7 +376,9 @@ 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 + toolkit</ulink>. + + This is especially useful for systems where the <acronym>DSSSL</acronym>/<command>make</command> setup does not work properly. </para> @@ -346,8 +386,9 @@ <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 + 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> @@ -370,15 +411,20 @@ <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. + 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> @@ -443,7 +489,9 @@ Translating documentation is another important task. Not only does new documentation need to be translated into the existing languages, additional languages are - welcome. Also, existing translations need to be brought + welcome. + + Also, existing translations need to be brought up to date because the English versions have been changed. Help on how to perform the translation process is in the <link linkend="faq.translators-revision-tracking">Revision Tracking</link> @@ -456,8 +504,10 @@ <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, do not hesitate to get in touch with the documentation + 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>. To join the pear-doc list send an email to <ulink @@ -482,34 +532,50 @@ <orderedlist> <listitem> <para> - First, every package solves a problem. What is this 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 programmer can understand. + 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. 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 of how it solves the problem? + 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 + of how it solves the problem? </para> </listitem> <listitem> <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 ways of using the package. + quickly start using the package. + + More complex examples will help the users in understanding advanced + ways of using the package. </para> </listitem> <listitem> @@ -517,16 +583,21 @@ 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. Document any interfaces that users must use, such + 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. </para> </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. They will catch assumptions that you have missed. + 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> </orderedlist>