Author: Derick Rethans
Date: 2006-01-19 10:53:12 +0100 (Thu, 19 Jan 2006)
New Revision: 1974

Log:
- Now we do images too.

Modified:
   scripts/build-docs.sh
   scripts/render-tutorial.php

Modified: scripts/build-docs.sh
===================================================================
--- scripts/build-docs.sh       2006-01-19 09:46:43 UTC (rev 1973)
+++ scripts/build-docs.sh       2006-01-19 09:53:12 UTC (rev 1974)
@@ -4,16 +4,20 @@
 cd /home/httpd || exit 2
 svn co http://svn.ez.no/svn/ezcomponents ezcomponents.docfix || exit 3
 cd ezcomponents.docfix || exit 4
+echo "Removing 'array' keyword because of a bug in phpdoc"
 scripts/fix-docs-array.sh || exit 5
 rm -rf /home/httpd/html/components/phpdoc_gen || exit 6
 rm -rf /home/httpd/html/components/cdocs.tgz || exit 7
 /usr/local/bin/phpdoc -c ezcomponents.ini | grep -v Ignored || exit 8
+./scripts/setup-env.sh
 cd packages
 echo "Generating Tutorials:"
 for i in *; do
        if test -f $i/trunk/docs/tutorial.txt; then
                echo "* $i"
                php ../scripts/render-tutorial.php -c $i -t 
/home/httpd/html/components/phpdoc_gen/ezcomponents/1.0rc1
+       else
+               echo "<h1>No introduction available for $i</h1>" > 
/home/httpd/html/components/phpdoc_gen/ezcomponents/1.0rc1/introduction_$i.html
        fi
 done
 cd ..

Modified: scripts/render-tutorial.php
===================================================================
--- scripts/render-tutorial.php 2006-01-19 09:46:43 UTC (rev 1973)
+++ scripts/render-tutorial.php 2006-01-19 09:53:12 UTC (rev 1974)
@@ -48,6 +48,10 @@
 $targetDir = $params->getOption( 'target' )->value;
 file_put_contents( "$targetDir/introduction_$component.html", $output );
 
+// Copying images
+`mkdir -p $targetDir/img`;
+`cp $component/trunk/docs/img/*.png $targetDir/img/`;
+
 function getRstOutput( $component )
 {
        $fileName = "$component/trunk/docs/tutorial.txt";
@@ -72,7 +76,6 @@
 <b>[ <a href="introduction_$component.html" class="menu">Introduction</a> ]</b>
 <b>[ <a href="classtrees_$component.html" class="menu">Class tree</a> ]</b>
 <b>[ <a href="elementindex_$component.html" class="menu">Element index</a> 
]</b>
-<b>[ <a href="elementindex.html" class="menu">All elements</a> ]</b>
 <h2>Introduction for Component $component</h2>
 <hr class="separator" />
 FOO;

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to