From: Hartmut Holzgraefe Date: Wed, 23 Apr 2003 16:29:32 +0000 (+0000) Subject: documentation generation improvements X-Git-Tag: SPL_ALPHA~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=587e7dd693e6ac1de4fc4f82f5a171555ec8c8d1;p=php documentation generation improvements --- diff --git a/scripts/ext_skel_ng/extension_parser.php b/scripts/ext_skel_ng/extension_parser.php index 19c50a05df..ef2691d847 100644 --- a/scripts/ext_skel_ng/extension_parser.php +++ b/scripts/ext_skel_ng/extension_parser.php @@ -285,39 +285,41 @@ // {{{ docbook documentation function generate_documentation() { + $id_name = str_replace('_', '-', $this->name); + system("rm -rf {$this->name}/manual"); mkdir("{$this->name}/manual"); - $docdir = "{$this->name}/manual/".$this->name; + $docdir = "{$this->name}/manual/$id_name"; mkdir($docdir); $fp = fopen("$docdir/reference.xml", "w"); fputs($fp, " - + {$this->summary} - {$this->name} + $id_name -
+
&reftitle.intro; {$this->description}
-
+
&reftitle.required;
-
+
&reftitle.runtime; "); @@ -326,7 +328,7 @@ } else { fputs($fp, " - {$this->name} runtime configuration + $id_name runtime configuration @@ -356,7 +358,7 @@ fputs($fp, " -
+
&reftitle.resources; "); @@ -372,7 +374,7 @@ fputs($fp, "
-
+
&reftitle.constants; "); if(empty($this->constants)) { @@ -380,7 +382,7 @@ } else { fputs($fp, "
- {$this->name} constants + $id_name constants @@ -405,7 +407,7 @@ -&reference.{$this->name}.functions; +&reference.$id_name.functions; ");