svn: /phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/ docgen.php gtk/book.tpl gtk/class.tpl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn: /phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/ docgen.php gtk/book.tpl gtk/class.tpl

Justin Martin-5
frozenfire                               Fri, 19 Nov 2010 01:29:20 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=305542

Log:
Have to commit before I go insane. Status is that I'm trying to make the documentation build even partially.

Changed paths:
    U   phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php
    A   phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/book.tpl
    U   phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/class.tpl

Modified: phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php
===================================================================
--- phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php 2010-11-19 01:06:47 UTC (rev 305541)
+++ phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/docgen.php 2010-11-19 01:29:20 UTC (rev 305542)
@@ -268,6 +268,13 @@

  /* {EMPTY_REVISION_KEYWORD} */
  $content = str_replace('{EMPTY_REVISION_KEYWORD}', '<!-- '. chr(36) .'Revision$ -->', $content);
+
+ if($OPTION['gtk']) {
+ if(!$INFO['subextension']) $INFO['subextension'] = '';
+
+ /* {SUB_EXT_NAME_ID} */
+ $content = preg_replace('/\{SUB_EXT_NAME_ID\}/', '.'.$INFO['subextension'], $content);
+ }

  return $content;
 }
@@ -985,6 +992,7 @@
  if ($OPTION['verbose']) echo "Generating ".$extname." PHP-GTK sub-extension.".PHP_EOL;
  $classes = array();
  $OPTION["output"] = $OPTION["output"].$dirsep.$extname;
+ $INFO['subextension'] = $extname;
  create_dir($OPTION["output"]);

  $defs = glob("{$ext}{$dirsep}*.defs");
@@ -1009,10 +1017,19 @@
  if($extname == "gtkplus") {
  $classLevelOutput = $OPTION["output"];

- if(is_int(stripos($classtmp, "Gtk"))) $OPTION["output"] = $OPTION["output"]."{$dirsep}gtk";
- elseif(is_int(stripos($classtmp, "Atk"))) $OPTION["output"] = $OPTION["output"]."{$dirsep}atk";
- elseif(is_int(stripos($classtmp, "Gdk"))) $OPTION["output"] = $OPTION["output"]."{$dirsep}gdk";
- elseif(is_int(stripos($classtmp, "Pango"))) $OPTION["output"] = $OPTION["output"]."{$dirsep}pango";
+ if(is_int(stripos($classtmp, "Gtk"))) {
+ $OPTION["output"] = $OPTION["output"]."{$dirsep}gtk";
+ $INFO['subextension'] = "$extname.gtk";
+ } elseif(is_int(stripos($classtmp, "Atk"))) {
+ $OPTION["output"] = $OPTION["output"]."{$dirsep}atk";
+ $INFO['subextension'] = "$extname.atk";
+ } elseif(is_int(stripos($classtmp, "Gdk"))) {
+ $OPTION["output"] = $OPTION["output"]."{$dirsep}gdk";
+ $INFO['subextension'] = "$extname.gdk";
+ } elseif(is_int(stripos($classtmp, "Pango"))) {
+ $OPTION["output"] = $OPTION["output"]."{$dirsep}pango";
+ $INFO['subextension'] = "$extname.pango";
+ }

  create_dir($OPTION["output"]);
  }
@@ -1335,6 +1352,7 @@

 if (!empty($OPTION['gtk'])) {
  define('DOC_SIGNAL', 1<<5);
+ $DOC_EXT['book.xml'] = 'gtk/book.tpl';
  $TEMPLATE[DOC_CLASS] = 'gtk/class.tpl';
  $TEMPLATE[DOC_SIGNAL] = 'gtk/signal.tpl';
 }

Added: phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/book.tpl
===================================================================
--- phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/book.tpl                        (rev 0)
+++ phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/book.tpl 2010-11-19 01:29:20 UTC (rev 305542)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+{EMPTY_REVISION_KEYWORD}
+
+<book xml:id="book.{EXT_NAME_ID}" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>{EXT_NAME}</title>
+ <titleabbrev>{EXT_NAME}</titleabbrev>
+
+ <preface xml:id="intro.{EXT_NAME_ID}">
+  &reftitle.intro;
+  <para>
+
+  </para>
+ </preface>
+
+ &reference.php-gtk.setup;
+ &reference.php-gtk.constants;
+
+ &reference.php-gtk.gtkplus.entities.atk;
+ &reference.php-gtk.gtkplus.entities.gdk;
+ &reference.php-gtk.gtkplus.entities.gtk;
+ &reference.php-gtk.gtkplus.entities.pango;
+</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:"~/.phpdoc/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
+-->

Modified: phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/class.tpl
===================================================================
--- phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/class.tpl 2010-11-19 01:06:47 UTC (rev 305541)
+++ phpdoc/doc-base/branches/gtk-docgen/scripts/docgen/gtk/class.tpl 2010-11-19 01:29:20 UTC (rev 305542)
@@ -49,9 +49,9 @@

  </partintro>

- &reference.{EXT_NAME_ID}.entities.{CLASS_NAME_ID};
+ &reference.{EXT_NAME_ID}{SUB_EXT_NAME_ID}.entities.{CLASS_NAME_ID};

- &reference.{EXT_NAME_ID}.entities.signals.{CLASS_NAME_ID};
+ &reference.{EXT_NAME_ID}{SUB_EXT_NAME_ID}.{CLASS_NAME_ID}.signals;

 </phpdoc:classref>



--
PHP-GTK Documentation Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php