Update build and publish for more no toc documents

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5269 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-01-19 22:48:34 +00:00
parent 7de975d0ea
commit a4f508b6fa
2 changed files with 24 additions and 4 deletions

View File

@ -504,15 +504,27 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
VPN.htm VPN.htm
whitelisting_under_shorewall.htm" whitelisting_under_shorewall.htm"
NOTOC="
Documentation_Index.xml
ECN.xml
fallback.xml
GettingStarted.xml
IPP2P.xml
ping.xml
ProxyARP.xml
shorewall_features.xml
shorewall_prerequisites.xml
SimpleBridge.xml"
for file in shorewall-docs-xml-$VERSION/*.xml; do for file in shorewall-docs-xml-$VERSION/*.xml; do
a=$(basename $file) a=$(basename $file)
b=${a%.*} b=${a%.*}
list_search $b.htm $HTMFILES && b=$b.htm || b=$b.html list_search $b.htm $HTMFILES && b=$b.htm || b=$b.html
f="shorewall-docs-html-$VERSION/$b" f="shorewall-docs-html-$VERSION/$b"
list_search $1 $NOTOC && GENTOC="--stringparam generate.toc ''" || GENTOC=
report "Converting $DIR/$file from XML to HTML ($DIR/$f) ..." report "Converting $DIR/$file from XML to HTML ($DIR/$f) ..."
do_or_die xsltproc --output $f --stringparam html.stylesheet html.css --stringparam ulink.target _self -param toc.section.depth 3 $STYLESHEET $file do_or_die xsltproc --output $f --stringparam html.stylesheet html.css --stringparam ulink.target _self $GENTOC -param toc.section.depth 3 $STYLESHEET $file
done done
progress_message "Copying images to $DIR/$HTMLDIR/images ..." progress_message "Copying images to $DIR/$HTMLDIR/images ..."

View File

@ -43,12 +43,20 @@ HTMFILES="
upgrade_issues.htm upgrade_issues.htm
VPN.htm VPN.htm
whitelisting_under_shorewall.htm" whitelisting_under_shorewall.htm"
#
# Suppress the table of contents in these short articles
#
NOTOC=" NOTOC="
Documentation_Index.xml Documentation_Index.xml
ECN.xml
fallback.xml
GettingStarted.xml GettingStarted.xml
IPP2P.xml
ping.xml
ProxyARP.xml ProxyARP.xml
shorewall_prerequisites.xml" shorewall_features.xml
shorewall_prerequisites.xml
SimpleBridge.xml"
list_search() # $1 = element to search for , $2-$n = list list_search() # $1 = element to search for , $2-$n = list
{ {