doc build improvements
authorgggeek <giunta.gaetano@gmail.com>
Sun, 27 Nov 2022 17:14:40 +0000 (17:14 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sun, 27 Nov 2022 17:14:40 +0000 (17:14 +0000)
doc/build/composer.json
doc/build/custom.fo.xsl
pakefile.php

index f75f150..2f062f4 100644 (file)
                 }
             }
         }
-    ]
+    ],
+    "config": {
+        "allow-plugins": {
+            "symfony/flex": true
+        }
+    }
 }
index b1964c0..04202ad 100644 (file)
@@ -11,8 +11,8 @@
 -->
 
 
-<!-- import base stylesheet -->
-<xsl:import href="../../../../vendor/docbook/docbook-xsl/fo/docbook.xsl"/>
+<!-- import base stylesheet. This assumes the 'workspace' dir is next to the 'tools' one -->
+<xsl:import href="../../../../tools/vendor/docbook/docbook-xsl/fo/docbook.xsl"/>
 
 
 <!-- customization vars -->
 </xsl:template>
 
 
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
index a0aaa6b..2a726d6 100644 (file)
@@ -22,7 +22,8 @@ class Builder
     );
     protected static $options = array(
         'repo' => 'https://github.com/gggeek/phpxmlrpc',
-        'branch' => 'master'
+        'branch' => 'master',
+        'workspace' => null
     );
 
     public static function libVersion()
@@ -39,7 +40,7 @@ class Builder
 
     public static function workspaceDir()
     {
-        return self::buildDir().'/workspace';
+        return self::option('workspace') != '' ? self::option('workspace') : self::buildDir().'/workspace';
     }
 
     public static function toolsDir()
@@ -352,9 +353,10 @@ function run_dist($task=null, $args=array(), $cliOpts=array())
     // copy workspace dir into dist dir, without git
     pake_mkdirs(Builder::distDir());
     $finder = pakeFinder::type('any')->ignore_version_control();
+    /// @todo make sure we don't recurse - avoid 'build' dir
     pake_mirror($finder, realpath(Builder::workspaceDir()), realpath(Builder::distDir()));
 
-    // remove unwanted files from dist dir
+    // @todo remove unwanted files from dist dir - files and dirs from .gitattributes
 
     // also: do we still need to run dos2unix?