Author: Derick Rethans
Date: 2006-01-24 17:12:05 +0100 (Tue, 24 Jan 2006)
New Revision: 2021
Log:
- Updated doc building scripts to support building from trunk.
Modified:
scripts/build-docs.sh
scripts/build-php-doc-config.php
scripts/list-export-dirs.php
Modified: scripts/build-docs.sh
===================================================================
--- scripts/build-docs.sh 2006-01-24 16:10:00 UTC (rev 2020)
+++ scripts/build-docs.sh 2006-01-24 16:12:05 UTC (rev 2021)
@@ -27,23 +27,87 @@
rm -rf /home/httpd/html/components/cdocs.tgz || exit 7
echo "Running php documentor"
-/usr/local/bin/phpdoc -q -c /tmp/doc-components.ini | grep -v Ignored | grep
-v Writing | grep -v Notice || exit 8
+/usr/local/bin/phpdoc -q -c /tmp/doc-components.ini | grep -v Ignored || exit 8
./scripts/setup-env.sh
cd packages
+
+echo "Writing left_menu_comp.tpl"
+cat >
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.tpl << EOF
+<div class="attribute-heading">
+<h2 class="bullet">eZ components</h2>
+</div>
+
+<div class="boxcontent">
+<div id="quicklinks">
+{let \$indexDir = ezsys( 'indexdir' )}
+<h2>Packages</h2>
+<ul>
+EOF
+cat >
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.html <<
EOF
+<div class="attribute-heading">
+<h2 class="bullet">eZ components</h2>
+</div>
+
+<div class="boxcontent">
+<div id="quicklinks">
+<h2>Packages</h2>
+<ul>
+EOF
+
echo "Generating Tutorials:"
for i in $j; do
+ comp=`echo $i | cut -d / -f 1`
if test -f $i/docs/tutorial.txt; then
- comp=`echo $i | cut -d / -f 1`
echo "* $comp"
php ../scripts/render-tutorial.php -c $comp -t
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1 -v $1
+
+cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.tpl << EOF
+<li><a href="{concat(\$indexDir,
'/components/view/(file)/$1/introduction_$comp.html')}">$comp</a></li>
+EOF
+cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.html <<
EOF
+<li><a
href="/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html">$comp</a></li>
+EOF
else
- echo '<div class="attribute-heading"><h1>'$i'</h1></div>' >
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html
+ echo '<div class="attribute-heading"><h1>'$comp'</h1></div>' >
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html
echo '<b>[ <a href="introduction_'$i'.html"
class="menu">Introduction</a> ]</b>' >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html
echo '<b>[ <a href="classtrees_'$i'.html" class="menu">Class
tree</a> ]</b>' >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html
echo '<b>[ <a href="elementindex_'$i'.html"
class="menu">Element index</a> ]</b>' >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html
- echo "<h1>No introduction available for $i</h1>" >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html
+ echo "<h1>No introduction available for $comp</h1>" >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/introduction_$comp.html
+cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.tpl << EOF
+<li><a href="{concat(\$indexDir,
'/components/view/(file)/$1/classtrees_$comp.html')}">$comp</a></li>
+EOF
+cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.html <<
EOF
+<li><a
href="/components/phpdoc_gen/ezcomponents/$1/classtrees_$comp.html">$comp</a></li>
+EOF
fi
done
+
+cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.tpl << EOF
+</ul>
+<hr/>
+
+<ul>
+<li><a href="{concat(\$indexDir,
'/components/view/(file)/$1/elementindex.html')}">All Elements</a></li>
+</ul>
+{/let}
+
+</div>
+</div>
+EOF
+
+cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.html <<
EOF
+</ul>
+<hr/>
+
+<ul>
+<li><a href="/components/phpdoc_gen/ezcomponents/$1/elementindex.html">All
Elements</a></li>
+</ul>
+
+</div>
+</div>
+EOF
+
+
cd ..
cd /home/httpd/html/components || exit 10
tar -czf cdocs.tgz phpdoc_gen || exit 11
Modified: scripts/build-php-doc-config.php
===================================================================
--- scripts/build-php-doc-config.php 2006-01-24 16:10:00 UTC (rev 2020)
+++ scripts/build-php-doc-config.php 2006-01-24 16:12:05 UTC (rev 2021)
@@ -18,9 +18,13 @@
$elements = fetchVersionsFromReleaseFile( $fileName );
-foreach ( $elements as $component => $version)
+foreach ( $elements as $component => $componentVersion )
{
- $directories .=
"/home/httpd/ezcomponents.docfix/packages/$component/releases/$version,";
+ if ( $componentVersion != 'trunk' )
+ {
+ $componentVersion = "releases/$componentVersion";
+ }
+ $directories .=
"/home/httpd/ezcomponents.docfix/packages/$component/$componentVersion,";
}
// strip last ,
Modified: scripts/list-export-dirs.php
===================================================================
--- scripts/list-export-dirs.php 2006-01-24 16:10:00 UTC (rev 2020)
+++ scripts/list-export-dirs.php 2006-01-24 16:12:05 UTC (rev 2021)
@@ -18,9 +18,13 @@
$elements = fetchVersionsFromReleaseFile( $fileName );
-foreach ( $elements as $component => $version)
+foreach ( $elements as $component => $componentVersion )
{
- echo "$component/releases/$version\n";
+ if ( $componentVersion != 'trunk' )
+ {
+ $componentVersion = "releases/$componentVersion";
+ }
+ echo "$component/$componentVersion\n";
}
?>
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components