Author: Derick Rethans
Date: 2006-01-27 14:17:23 +0100 (Fri, 27 Jan 2006)
New Revision: 2056
Log:
- Create list of tutorials.
Modified:
scripts/build-docs.sh
scripts/render-tutorial.php
Modified: scripts/build-docs.sh
===================================================================
--- scripts/build-docs.sh 2006-01-27 13:17:01 UTC (rev 2055)
+++ scripts/build-docs.sh 2006-01-27 13:17:23 UTC (rev 2056)
@@ -40,8 +40,14 @@
<div class="boxcontent">
<div id="quicklinks">
{let \$indexDir = ezsys( 'indexdir' )}
-<h2>Packages</h2>
+<h2>Getting Started</h2>
<ul>
+<li><a
href="http://ez.no/community/articles/an_introduction_to_ez_components">Installation</a></li>
+<li><a href="{concat(\$indexDir,
'/components/view/(file)/$i/tutorials.html')}">Tutorials</a></li>
+</ul>
+
+<h2>Components</h2>
+<ul>
EOF
cat >
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/left_menu_comp.html <<
EOF
<div class="attribute-heading">
@@ -50,6 +56,12 @@
<div class="boxcontent">
<div id="quicklinks">
+<h2>Getting Started</h2>
+<ul>
+<li><a
href="http://ez.no/community/articles/an_introduction_to_ez_components">Installation</a></li>
+<li><a
href="/components/phpdoc_gen/ezcomponents/$i/tutorials.html')}">Tutorials</a></li>
+</ul>
+
<h2>Packages</h2>
<ul>
EOF
@@ -61,25 +73,28 @@
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>
+ cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/tutorials.tpl << EOF
+<li><a href="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>
+ cat >>
/home/httpd/html/components/phpdoc_gen/ezcomponents/$1/tutorials.html << EOF
+<li><a href="introduction_$comp.html">$comp</a></li>
EOF
+done
+
else
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="introduction_'$i'.html"
class="menu">Tutorial</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 $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
+ fi
+
+ 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
+ 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
Modified: scripts/render-tutorial.php
===================================================================
--- scripts/render-tutorial.php 2006-01-27 13:17:01 UTC (rev 2055)
+++ scripts/render-tutorial.php 2006-01-27 13:17:23 UTC (rev 2056)
@@ -61,8 +61,7 @@
// Copying images
`mkdir -p $targetDir/img`;
-`cp $component/trunk/docs/img/*.png $targetDir/img/ > /dev/null`;
-`cp $component/trunk/docs/img/*.jpg $targetDir/img/ > /dev/null`;
+`cp $component/trunk/docs/img/*.* $targetDir/img/ > /dev/null`;
function getRstOutput( $component )
{
@@ -85,10 +84,10 @@
<div class="attribute-heading"><h1>$component</h1></div>
-<b>[ <a href="introduction_$component.html" class="menu">Introduction</a> ]</b>
+<b>[ <a href="introduction_$component.html" class="menu">Tutorial</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>
-<h2>Introduction for Component $component</h2>
+<h2>Tutorial for Component $component</h2>
<hr class="separator" />
FOO;
return $outputHeader . $output;
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components