o adding updated toc generator, thanks to bob allison

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@321155 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2005-10-14 17:19:38 +00:00
parent caa799fe41
commit 5b9d2cf645
2 changed files with 67 additions and 11 deletions

View File

@ -12,16 +12,6 @@ Documentation
* {{{getting-started/index.html}Getting Started Guide}}
* Developer Guides
* {{{development/guide-m2-development.html}Guide to Developing Maven 2.x}}
* {{{development/guide-building-m2.html}Guide to Building Maven 2.x}}
* Plug-in Guides
* {{{plugin/guide-plugin-development.html}Plug-in Developer's Guide}}
* Mini Guides
* {{{mini/guide-apt-format.html}Guide to the APT Format}}
@ -91,3 +81,14 @@ Documentation
* {{{introduction/introduction-to-the-standard-directory-layout.html}Introduction to the Standard Directory Layout}}
* Plugin Guides
* {{{plugin/guide-java-plugin-development.html}Guide to Developing Java Plugins}}
* Developer Guides
* {{{development/guide-m2-development.html}Guide to Developing Maven 2.x}}
* {{{development/guide-building-m2.html}Guide to Building Maven 2.x}}

View File

@ -1,8 +1,29 @@
toc=`pwd`/index.apt
cp header.apt $toc
#
# Top matter
#
echo " ------ " > $toc
echo " Summary of Maven 2.x documentation " >> $toc
echo " ------ " >> $toc
echo " Jason van Zyl " >> $toc
echo " ------ " >> $toc
echo " 12 October 2005 " >> $toc
echo " ------ " >> $toc
echo >> $toc
echo "Documentation" >> $toc
echo >> $toc
echo "* Getting Started Guide" >> $toc
echo >> $toc
echo " * {{{getting-started/index.html}Getting Started Guide}}" >> $toc
#
# Mini Guides
#
echo >> $toc
echo "* Mini Guides" >> $toc
echo >> $toc
@ -17,6 +38,10 @@ echo >> $toc
done
)
#
# Introductions
#
echo >> $toc
echo "* Introductory Material" >> $toc
echo >> $toc
@ -31,3 +56,33 @@ echo >> $toc
[ ! -z "$title" ] && echo " * {{{introduction/$i}$title}}" >> $toc && echo >> $toc
done
)
#
# Plugins
#
echo >> $toc
echo "* Plugin Guides" >> $toc
echo >> $toc
(
cd plugin
for i in `ls guide-*.apt`
do
title=`grep "^ Guide" $i | sed 's/^ *//'`
i=`echo $i | sed 's/\.apt/\.html/'`
[ ! -z "$title" ] && echo " * {{{plugin/$i}$title}}" >> $toc && echo >> $toc
done
)
#
# Developer Guides
#
echo "" >> $toc
echo "* Developer Guides " >> $toc
echo "" >> $toc
echo " * {{{development/guide-m2-development.html}Guide to Developing Maven 2.x}}" >> $toc
echo " " >> $toc
echo " * {{{development/guide-building-m2.html}Guide to Building Maven 2.x}}" >> $toc