cvs: phpdoc /en/reference/tidy book.xml constants.xml examples.xml reference.xml setup.xml

From: Date: Sun, 23 Dec 2007 22:47:05 +0000
Subject: cvs: phpdoc /en/reference/tidy book.xml constants.xml examples.xml reference.xml setup.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-794@lists.php.net to get a copy of this message
bjori Sun Dec 23 22:47:05 2007 UTC Modified files: /phpdoc/en/reference/tidy book.xml examples.xml setup.xml constants.xml reference.xml Log: MFB: Upgrade to the new-reference-structure - (Created missing setup sections in setup.xml, if any) - Moved the intro to book.xml - Changed the intro ID from <extname>.intro to intro.<extname> - Moved the constants entity to book.xml - Changed constants.xml to be an appendix - Moved the requirements and resources section to setup.xml - Moved the configure and ini entities to setup.xml - Moved the example into its own chapter (examples.xml) NOTE: The chapter has the tidy.examples ID, the old tidy.examples is now tidy.examples.basic http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tidy/book.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/tidy/book.xml diff -u /dev/null phpdoc/en/reference/tidy/book.xml:1.2 --- /dev/null Sun Dec 23 22:47:05 2007 +++ phpdoc/en/reference/tidy/book.xml Sun Dec 23 22:47:05 2007 @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<book xml:id="book.tidy" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <title>Tidy</title> + + <!-- {{{ preface --> + <preface xml:id="intro.tidy"> + &reftitle.intro; + <para> + Tidy is a binding for the Tidy HTML clean and repair utility which + allows you to not only clean and otherwise manipulate HTML documents, + but also traverse the document tree. + </para> + </preface> + <!-- }}} --> + + &reference.tidy.setup; + &reference.tidy.constants; + &reference.tidy.examples; + &reference.tidy.reference; + +</book> + +<!-- 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 +indent-tabs-mode:nil +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/phpdoc/en/reference/tidy/examples.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/tidy/examples.xml diff -u /dev/null phpdoc/en/reference/tidy/examples.xml:1.2 --- /dev/null Sun Dec 23 22:47:05 2007 +++ phpdoc/en/reference/tidy/examples.xml Sun Dec 23 22:47:05 2007 @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<appendix xml:id="tidy.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.examples; + <section xml:id="tidy.examples.basic"> + &reftitle.examples; + <para> + This simple example shows basic Tidy usage. + <example> + <title>Basic Tidy usage</title> + <programlisting role="php"> +<![CDATA[ +<?php +ob_start(); +?> +<html>a html document</html> +<?php +$html = ob_get_clean(); + +// Specify configuration +$config = array( + 'indent' => true, + 'output-xhtml' => true, + 'wrap' => 200); + +// Tidy +$tidy = new tidy; +$tidy->parseString($html, $config, 'utf8'); +$tidy->cleanRepair(); + +// Output +echo $tidy; +?> +]]> + </programlisting> + </example> + </para> + </section> +</appendix> + +<!-- 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 +indent-tabs-mode:nil +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/phpdoc/en/reference/tidy/setup.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/tidy/setup.xml diff -u /dev/null phpdoc/en/reference/tidy/setup.xml:1.2 --- /dev/null Sun Dec 23 22:47:05 2007 +++ phpdoc/en/reference/tidy/setup.xml Sun Dec 23 22:47:05 2007 @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.2 $ --> + +<chapter xml:id="tidy.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + &reftitle.setup; + + <!-- {{{ Requirements --> + <section xml:id="tidy.requirements"> + &reftitle.required; + <para> + To use Tidy, you will need libtidy installed, available + on the tidy homepage <link xlink:href="&url.tidy;">&url.tidy;</link>. + </para> + </section> + <!-- }}} --> + + &reference.tidy.configure; + + &reference.tidy.ini; + + <!-- {{{ Resources --> + <section xml:id="tidy.resources"> + &reftitle.resources; + &no.resource; + </section> + <!-- }}} --> + +</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 +indent-tabs-mode:nil +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/phpdoc/en/reference/tidy/constants.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc/en/reference/tidy/constants.xml diff -u phpdoc/en/reference/tidy/constants.xml:1.8 phpdoc/en/reference/tidy/constants.xml:1.9 --- phpdoc/en/reference/tidy/constants.xml:1.8 Wed Jun 20 22:25:32 2007 +++ phpdoc/en/reference/tidy/constants.xml Sun Dec 23 22:47:05 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<section xml:id="tidy.constants" xmlns="http://docbook.org/ns/docbook"> +<!-- $Revision: 1.9 $ --> +<appendix xml:id="tidy.constants" xmlns="http://docbook.org/ns/docbook"> &reftitle.constants; &extension.constants; <para> @@ -922,7 +922,7 @@ </tgroup> </table> </para> -</section> +</appendix> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/tidy/reference.xml?r1=1.13&r2=1.14&diff_format=u Index: phpdoc/en/reference/tidy/reference.xml diff -u phpdoc/en/reference/tidy/reference.xml:1.13 phpdoc/en/reference/tidy/reference.xml:1.14 --- phpdoc/en/reference/tidy/reference.xml:1.13 Mon Dec 10 17:06:10 2007 +++ phpdoc/en/reference/tidy/reference.xml Sun Dec 23 22:47:05 2007 @@ -1,37 +1,12 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.13 $ --> +<!-- $Revision: 1.14 $ --> <!-- Purpose: basic.other --> <!-- Membership: pecl, bundled, external --> <reference xml:id="ref.tidy" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Tidy Functions</title> <titleabbrev>tidy</titleabbrev> - <partintro> - <section xml:id="tidy.intro"> - &reftitle.intro; - <para> - Tidy is a binding for the Tidy HTML clean and repair utility which - allows you to not only clean and otherwise manipulate HTML documents, - but also traverse the document tree. - </para> - </section> - - <section xml:id="tidy.requirements"> - &reftitle.required; - <para> - To use Tidy, you will need libtidy installed, available - on the tidy homepage <link xlink:href="&url.tidy;">&url.tidy;</link>. - </para> - </section> - - &reference.tidy.configure; - &reference.tidy.ini; - - <section xml:id="tidy.resources"> - &reftitle.resources; - &no.resource; - </section> <section xml:id='tidy.classes'> &reftitle.classes; @@ -110,43 +85,6 @@ </section> </section> </section> - - &reference.tidy.constants; - - <section xml:id="tidy.examples"> - &reftitle.examples; - <para> - This simple example shows basic Tidy usage. - <example> - <title>Basic Tidy usage</title> - <programlisting role="php"> -<![CDATA[ -<?php -ob_start(); -?> -<html>a html document</html> -<?php -$html = ob_get_clean(); - -// Specify configuration -$config = array( - 'indent' => true, - 'output-xhtml' => true, - 'wrap' => 200); - -// Tidy -$tidy = new tidy; -$tidy->parseString($html, $config, 'utf8'); -$tidy->cleanRepair(); - -// Output -echo $tidy; -?> -]]> - </programlisting> - </example> - </para> - </section> </partintro> &reference.tidy.entities.functions;

« previous php.doc.cvs (#794) next »