From 98b9d84beda62cad4d4ebfabc9c46446701a2d85 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 21 Dec 2022 15:25:49 +0000 Subject: [PATCH] mots --- .gitattributes | 1 - doc/build/convert.php | 10 ++++++++++ doc/build/custom.fo.xsl | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitattributes b/.gitattributes index c776c5d8..29c3b37c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10,5 +10,4 @@ tests/ export-ignore .editorconfig export-ignore .gitattributes export-ignore .gitignore export-ignore -pakefile.php export-ignore phpunit.xml.dist export-ignore diff --git a/doc/build/convert.php b/doc/build/convert.php index 75b085c1..16aa9a72 100644 --- a/doc/build/convert.php +++ b/doc/build/convert.php @@ -66,6 +66,16 @@ $processor->importStyleSheet($xsl); $out = $processor->transformToXML($xml); +// bring back the xsl file to its pristine state +file_put_contents( + $xss, + str_replace( + array($docbookFoXslPath, $docbookChunkXslPath), + array('%fo-docbook.xsl%', '%docbook-chunk.xsl%'), + file_get_contents($xss) + ) +); + if (!is_dir($target)) { if (!file_put_contents($target, $out)) { error("KO saving output to '{$target}'"); diff --git a/doc/build/custom.fo.xsl b/doc/build/custom.fo.xsl index 074bc9fa..2f37de68 100644 --- a/doc/build/custom.fo.xsl +++ b/doc/build/custom.fo.xsl @@ -11,7 +11,7 @@ - + -- 2.47.0