hholzgra Tue Jul 3 04:59:42 2001 EDT Added files: /phpdoc kdevelop_toc.dsl Modified files: /phpdoc Makefile.in Log: generate KDevelop toc-files for integrating the manual as online documentation and help into KDevelop Index: phpdoc/Makefile.in diff -u phpdoc/Makefile.in:1.60 phpdoc/Makefile.in:1.61 --- phpdoc/Makefile.in:1.60 Wed May 16 17:28:21 2001 +++ phpdoc/Makefile.in Tue Jul 3 04:59:41 2001 @@ -17,7 +17,7 @@ # # -# $Id: Makefile.in,v 1.60 2001/05/16 21:28:21 jeroen Exp $ +# $Id: Makefile.in,v 1.61 2001/07/03 08:59:41 hholzgra Exp $ # VPATH=@srcdir@ @@ -35,11 +35,13 @@ HOWTO_STYLESHEET=howto.dsl PRINT_STYLESHEET=print.dsl QUICKREF_STYLESHEET=quickref.dsl +KDEVELOP_TOC_STYLESHEET=kdevelop_toc.dsl HTML_DEPS=$(HTML_STYLESHEET) html-common.dsl common.dsl PRINT_DEPS=$(PRINT_STYLESHEET) common.dsl PHPWEB_DEPS=$(PHPWEB_STYLESHEET) html-common.dsl common.dsl QUICKREF_DEPS=quickref.dsl Makefile +KDEVELOP_TOC_DEPS=kdevelop_toc.dsl Makefile PALMDOCTITLE=@PALMDOCTITLE@ @@ -106,6 +108,11 @@ quickref: quickref.txt quickref.txt: manual.xml $(QUICKREF_DEPS) $(JADE) $(CATALOG) -d $(QUICKREF_STYLESHEET) -V nochunks -t sgml $(srcdir)/phpdocxml.dcl manual.xml | sed -e 's/ */ /g' | sort -f > quickref.txt + +kdevelop_toc: php.toc +php.toc: manual.xml $(KDEVELOP_TOC_DEPS) + echo '<!DOCTYPE gideontoc>' > $@ + $(JADE) $(CATALOG) -d $(KDEVELOP_TOC_STYLESHEET) -V nochunks -t sgml +$(srcdir)/phpdocxml.dcl manual.xml | sed -e's/\& /\& /g' >> $@ makedoc: $(srcdir)/makedoc.cc g++ -o makedoc $(srcdir)/makedoc.cc Index: phpdoc/kdevelop_toc.dsl +++ phpdoc/kdevelop_toc.dsl <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!ENTITY docbook.dsl SYSTEM "/usr/share/sgml/docbkdsl/html/docbook.dsl" CDATA DSSSL> ]> <!-- $Id: kdevelop_toc.dsl,v 1.1 2001/07/03 08:59:41 hholzgra Exp $ Stylesheet for generating a .toc file for kdevelope. --> <style-sheet> <style-specification id="docbook-php-funcref" use="docbook"> <style-specification-body> (declare-flow-object-class element "UNREGISTERED::James Clark//Flow Object Class::element") (element book (make element gi: "gideontoc" (make sequence (make element gi: "title" (literal "PHP")) (make element gi: "base" attributes: (list (list "href" "NO")) (empty-sosofo)) (process-children) ) ) ) (element part (make element gi: "tocsect1" attributes: (list (list "name" (data (node-list-first (select-elements (children (current-node)) (normalize "title"))))) (list "url" (string-append (id (current-node)) ".html")) ) (process-children) ) ) (element chapter (make element gi: "tocsect2" attributes: (list (list "name" (data (node-list-first (select-elements (children (current-node)) (normalize "title"))))) (list "url" (string-append (id (current-node)) ".html")) ) (process-children) ) ) (element reference (make element gi: "tocsect2" attributes: (list (list "name" (data (node-list-first (select-elements (children (current-node)) (normalize "title"))))) (list "url" (string-append (id (current-node)) ".html")) ) (process-children) ) ) (element appendix (make element gi: "tocsect2" attributes: (list (list "name" (data (node-list-first (select-elements (children (current-node)) (normalize "title"))))) (list "url" (string-append (id (current-node)) ".html")) ) (process-children) ) ) (element refentry (process-children)) (element refnamediv (process-children)) (element refname (make element gi: "tocsect3" attributes: (list (list "name"(data (current-node))) (list "url" (string-append (id (parent (parent (current-node)))) ".html")) ) ) ) (default (empty-sosofo)) </style-specification-body> </style-specification> <external-specification id="docbook" document="docbook.dsl"> </style-sheet>