From 76b05c76f34a9e44ee0b72be5b1650d21c6a34df Mon Sep 17 00:00:00 2001 From: gggeek Date: Fri, 16 Dec 2022 18:47:29 +0000 Subject: [PATCH] small improvement in doc gen tollchain --- doc/build/custom.xsl | 4 ++-- pakefile.php | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/build/custom.xsl b/doc/build/custom.xsl index c96cf558..a76d100a 100644 --- a/doc/build/custom.xsl +++ b/doc/build/custom.xsl @@ -15,7 +15,7 @@ - + @@ -88,4 +88,4 @@ - \ No newline at end of file + diff --git a/pakefile.php b/pakefile.php index 5ca578bd..9d2513bf 100644 --- a/pakefile.php +++ b/pakefile.php @@ -118,10 +118,15 @@ class Builder throw new \Exception("File $xssFile cannot be found"); } - $docbookXslPath = realpath(Builder::buildDir().'/tools/vendor/docbook/docbook-xsl/fo/docbook.xsl'); + $docbookFoXslPath = realpath(Builder::buildDir().'/tools/vendor/docbook/docbook-xsl/fo/docbook.xsl'); + $docbookChunkXslPath = realpath(Builder::buildDir().'/tools/vendor/docbook/docbook-xsl/xhtml/chunk.xsl'); file_put_contents( $xssFile, - str_replace('%docbook.xsl%', $docbookXslPath, file_get_contents($xssFile)) + str_replace( + array('%fo-docbook.xsl%', '%docbook-chunk.xsl%'), + array($docbookFoXslPath, $docbookChunkXslPath), + file_get_contents($xssFile) + ) ); // Load the XML source @@ -278,8 +283,7 @@ function run_doc($task=null, $args=array(), $cliOpts=array()) $cmd = Builder::tool('php'); pake_sh("$cmd " . Builder::toolsDir(). "/vendor/bin/phpdoc run --cache-folder ".Builder::buildDir()."/.phpdoc -d ".$srcDir.'/src'." -t ".$docDir.'/api --title PHP-XMLRPC --defaultpackagename PHPXMLRPC'); - // from phpdoc comments using Sami - // deprecated on 2021/12, as Sami is abandonware + // from phpdoc comments using Sami - deprecated on 2021/12, as Sami is abandonware /*$samiConfig = <<