cvs: peardoc / manual.xml.in /en/package qa.xml /en/package/qa qa-peardoc-coverage.xml /en/package/qa/qa-peardoc-coverage generating.xml
howitworks.xml intro.xml
| From: | Christian Weiske | Date: | Mon, 30 Oct 2006 22:56:28 +0000 |
| Subject: | cvs: peardoc / manual.xml.in /en/package qa.xml /en/package/qa qa-peardoc-coverage.xml /en/package/qa/qa-peardoc-coverage generating.xml howitworks.xml intro.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8685@lists.php.net to get a copy of this message | ||
cweiske Mon Oct 30 22:56:28 2006 UTC
Added files:
/peardoc/en/package qa.xml
/peardoc/en/package/qa qa-peardoc-coverage.xml
/peardoc/en/package/qa/qa-peardoc-coverage generating.xml
howitworks.xml intro.xml
Modified files:
/peardoc manual.xml.in
Log:
QA_Peardoc_Coverage docs
http://cvs.php.net/viewvc.cgi/peardoc/manual.xml.in?r1=1.44&r2=1.45&diff_format=u Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.44 peardoc/manual.xml.in:1.45 --- peardoc/manual.xml.in:1.44 Tue Aug 22 10:11:09 2006 +++ peardoc/manual.xml.in Mon Oct 30 22:56:28 2006 @@ -106,6 +106,7 @@ &package.payment; &package.pear; &package.php; + &package.qa; &package.science; &package.streams; &package.structures; http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa.xml +++ peardoc/en/package/qa.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <chapter id="package.qa"> <title>QA Tools</title> <para> Tools to ensure the quality of something. </para> &blankpagehack; &package.qa.qa-peardoc-coverage; </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage.xml +++ peardoc/en/package/qa/qa-peardoc-coverage.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <sect1 id="package.qa.qa-peardoc-coverage"> <title>QA_Peardoc_Coverage</title> <para> Documentation coverage analysis for the PEAR packages documentation. </para> &package.qa.qa-peardoc-coverage.intro; &package.qa.qa-peardoc-coverage.howitworks; &package.qa.qa-peardoc-coverage.generating; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage/generating.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage/generating.xml +++ peardoc/en/package/qa/qa-peardoc-coverage/generating.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.qa.qa-peardoc-coverage.generating"> <refnamediv> <refname>Generating coverage analysis</refname> <refpurpose>Step by step</refpurpose> </refnamediv> <refsect1> <title>Generating coverage analysis data</title> <orderedlist> <listitem> <para> Make sure you have a fresh checkout of <literal>pear</literal> and <literal>peardoc</literal> directories from <ulink url="http://cvs.php.net">cvs.php.net</ulink>. </para> </listitem> <listitem> <para> Configure <literal>peardoc</literal> to generate the <filename>manual.xml</filename> in there ( <command>autoconf</command>, <command>./configure</command>). </para> </listitem> <listitem> <para> Call <filename>genData.php</filename> with the path to peardoc's <filename>manual.xml</filename> as first, and path to the pear cvs directory as second parameter. </para> </listitem> <listitem> <para> A file called <filename>doc.dat</filename> will be generated in the current working directory. </para> </listitem> </orderedlist> </refsect1> <refsect1> <title>Generating HTML reports</title> <para> Once the coverage data is generated and serialized, you can generate some HTML reports. For this, the packages provides four <emphasis>Renderer</emphasis> classes that all implement the <classname>QA_Peardoc_Coverage_Renderer</classname> interface: <itemizedlist> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_DeveloperList</classname> lists all developers with the number of packages they have, the number of undocumented packages and lists the undocumented ones. The list is sorted by percentage of documented packages. </para> </listitem> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_SimplePackageList</classname> lists all categories in PEAR, the packages in them and shows which of them have docs and which not. A final summary with the total number of existing and documented packages, and a percentage number is also given. </para> </listitem> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_ExtendetPackageList</classname> is similar to the simple list, but also shows the package's classes, their documentation state and their methods and their doc state. This list can be used to check which methods aren't yet covered by your documentation. </para> </listitem> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_MissingDocsPerDeveloper</classname> generates an array of developer email => array(package names) assignments that can be used as base data to send reminder emails. </para> </listitem> </itemizedlist> </para> <para> All the renderers have a <filename>examples/gen*.php</filename> file that uses the <filename>doc.dat</filename> file written by <filename>examples/genData.php</filename>. They echo the html to the console, so you should redirect it into a file. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage/howitworks.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage/howitworks.xml +++ peardoc/en/package/qa/qa-peardoc-coverage/howitworks.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.qa.qa-peardoc-coverage.howitworks"> <refnamediv> <refname>How it works</refname> <refpurpose>The global picture</refpurpose> </refnamediv> <refsect1> <title>How it works</title> <para> The documentation analysis report generation is split into two processes: <orderedlist> <listitem><para>Collect data and save it</para></listitem> <listitem><para>Generate different reports from saved data</para></listitem> </orderedlist> This was chosen because the data collection step takes a long time (~ 1 minute), but it's needed for every single report. So if you want to generate the simple doc coverage, and the extended one, you need the same base data - you just display it in a different way. </para> <para> <function>generateCoverage</function> in <classname>QA_Peardoc_Coverage</classname> generates and returns the array with the computed coverage data. It can be serialized and saved, since all the <emphasis>Renderer</emphasis> classes use it as input. </para> <para> Classes implementing the <classname>QA_Peardoc_Coverage_Renderer</classname> interface provide a <function>render</function> method that takes the data returned by <function>generateCoverage</function> and return the analysis, most times a string containing HTML code. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage/intro.xml +++ peardoc/en/package/qa/qa-peardoc-coverage/intro.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.qa.qa-peardoc-coverage.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>What QA_Peardoc_Coverage is good for</refpurpose> </refnamediv> <refsect1> <title>About QA_Peardoc_Coverage</title> <para> A great library is almost useless without documentation. PEAR has over 300 packages, automatically generated API documentation and a manual. The PEAR manual (the one you are reading) shall provide an overview on the packages and instructions about how to use them, and give an understanding about the classes in a package, and their methods. Further information about them can looked up in the API docs. </para> <para> With the amount of packages PEAR provides, it's hard to keep track of the state of documentation of the packages - a tool to track this was needed. <classname>QA_Peardoc_Coverage</classname> is it's incarnation. </para> <para> <classname>QA_Peardoc_Coverage</classname> uses a CVS checkout of PEAR and PEARDOC to find out which packages are documented, which classes and method are mentioned in the docs, and which developers do a good job in documenting their code. </para> </refsect1> </refentry>
http://cvs.php.net/viewvc.cgi/peardoc/manual.xml.in?r1=1.44&r2=1.45&diff_format=u Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.44 peardoc/manual.xml.in:1.45 --- peardoc/manual.xml.in:1.44 Tue Aug 22 10:11:09 2006 +++ peardoc/manual.xml.in Mon Oct 30 22:56:28 2006 @@ -106,6 +106,7 @@ &package.payment; &package.pear; &package.php; + &package.qa; &package.science; &package.streams; &package.structures; http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa.xml +++ peardoc/en/package/qa.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <chapter id="package.qa"> <title>QA Tools</title> <para> Tools to ensure the quality of something. </para> &blankpagehack; &package.qa.qa-peardoc-coverage; </chapter> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage.xml +++ peardoc/en/package/qa/qa-peardoc-coverage.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <sect1 id="package.qa.qa-peardoc-coverage"> <title>QA_Peardoc_Coverage</title> <para> Documentation coverage analysis for the PEAR packages documentation. </para> &package.qa.qa-peardoc-coverage.intro; &package.qa.qa-peardoc-coverage.howitworks; &package.qa.qa-peardoc-coverage.generating; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage/generating.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage/generating.xml +++ peardoc/en/package/qa/qa-peardoc-coverage/generating.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.qa.qa-peardoc-coverage.generating"> <refnamediv> <refname>Generating coverage analysis</refname> <refpurpose>Step by step</refpurpose> </refnamediv> <refsect1> <title>Generating coverage analysis data</title> <orderedlist> <listitem> <para> Make sure you have a fresh checkout of <literal>pear</literal> and <literal>peardoc</literal> directories from <ulink url="http://cvs.php.net">cvs.php.net</ulink>. </para> </listitem> <listitem> <para> Configure <literal>peardoc</literal> to generate the <filename>manual.xml</filename> in there ( <command>autoconf</command>, <command>./configure</command>). </para> </listitem> <listitem> <para> Call <filename>genData.php</filename> with the path to peardoc's <filename>manual.xml</filename> as first, and path to the pear cvs directory as second parameter. </para> </listitem> <listitem> <para> A file called <filename>doc.dat</filename> will be generated in the current working directory. </para> </listitem> </orderedlist> </refsect1> <refsect1> <title>Generating HTML reports</title> <para> Once the coverage data is generated and serialized, you can generate some HTML reports. For this, the packages provides four <emphasis>Renderer</emphasis> classes that all implement the <classname>QA_Peardoc_Coverage_Renderer</classname> interface: <itemizedlist> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_DeveloperList</classname> lists all developers with the number of packages they have, the number of undocumented packages and lists the undocumented ones. The list is sorted by percentage of documented packages. </para> </listitem> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_SimplePackageList</classname> lists all categories in PEAR, the packages in them and shows which of them have docs and which not. A final summary with the total number of existing and documented packages, and a percentage number is also given. </para> </listitem> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_ExtendetPackageList</classname> is similar to the simple list, but also shows the package's classes, their documentation state and their methods and their doc state. This list can be used to check which methods aren't yet covered by your documentation. </para> </listitem> <listitem> <para> <classname>QA_Peardoc_Coverage_Renderer_MissingDocsPerDeveloper</classname> generates an array of developer email => array(package names) assignments that can be used as base data to send reminder emails. </para> </listitem> </itemizedlist> </para> <para> All the renderers have a <filename>examples/gen*.php</filename> file that uses the <filename>doc.dat</filename> file written by <filename>examples/genData.php</filename>. They echo the html to the console, so you should redirect it into a file. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage/howitworks.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage/howitworks.xml +++ peardoc/en/package/qa/qa-peardoc-coverage/howitworks.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.qa.qa-peardoc-coverage.howitworks"> <refnamediv> <refname>How it works</refname> <refpurpose>The global picture</refpurpose> </refnamediv> <refsect1> <title>How it works</title> <para> The documentation analysis report generation is split into two processes: <orderedlist> <listitem><para>Collect data and save it</para></listitem> <listitem><para>Generate different reports from saved data</para></listitem> </orderedlist> This was chosen because the data collection step takes a long time (~ 1 minute), but it's needed for every single report. So if you want to generate the simple doc coverage, and the extended one, you need the same base data - you just display it in a different way. </para> <para> <function>generateCoverage</function> in <classname>QA_Peardoc_Coverage</classname> generates and returns the array with the computed coverage data. It can be serialized and saved, since all the <emphasis>Renderer</emphasis> classes use it as input. </para> <para> Classes implementing the <classname>QA_Peardoc_Coverage_Renderer</classname> interface provide a <function>render</function> method that takes the data returned by <function>generateCoverage</function> and return the analysis, most times a string containing HTML code. </para> </refsect1> </refentry> http://cvs.php.net/viewvc.cgi/peardoc/en/package/qa/qa-peardoc-coverage/intro.xml?view=markup&rev=1.1 Index: peardoc/en/package/qa/qa-peardoc-coverage/intro.xml +++ peardoc/en/package/qa/qa-peardoc-coverage/intro.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <refentry id="package.qa.qa-peardoc-coverage.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose>What QA_Peardoc_Coverage is good for</refpurpose> </refnamediv> <refsect1> <title>About QA_Peardoc_Coverage</title> <para> A great library is almost useless without documentation. PEAR has over 300 packages, automatically generated API documentation and a manual. The PEAR manual (the one you are reading) shall provide an overview on the packages and instructions about how to use them, and give an understanding about the classes in a package, and their methods. Further information about them can looked up in the API docs. </para> <para> With the amount of packages PEAR provides, it's hard to keep track of the state of documentation of the packages - a tool to track this was needed. <classname>QA_Peardoc_Coverage</classname> is it's incarnation. </para> <para> <classname>QA_Peardoc_Coverage</classname> uses a CVS checkout of PEAR and PEARDOC to find out which packages are documented, which classes and method are mentioned in the docs, and which developers do a good job in documenting their code. </para> </refsect1> </refentry>