mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 07:08:53 +01:00
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:
parent
7de975d0ea
commit
a4f508b6fa
@ -504,15 +504,27 @@ if [ -n "${BUILDXML}${BUILDHTML}" ]; then
|
||||
VPN.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
|
||||
a=$(basename $file)
|
||||
b=${a%.*}
|
||||
list_search $b.htm $HTMFILES && b=$b.htm || b=$b.html
|
||||
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) ..."
|
||||
|
||||
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
|
||||
|
||||
progress_message "Copying images to $DIR/$HTMLDIR/images ..."
|
||||
|
@ -43,12 +43,20 @@ HTMFILES="
|
||||
upgrade_issues.htm
|
||||
VPN.htm
|
||||
whitelisting_under_shorewall.htm"
|
||||
|
||||
#
|
||||
# Suppress the table of contents in these short articles
|
||||
#
|
||||
NOTOC="
|
||||
Documentation_Index.xml
|
||||
ECN.xml
|
||||
fallback.xml
|
||||
GettingStarted.xml
|
||||
IPP2P.xml
|
||||
ping.xml
|
||||
ProxyARP.xml
|
||||
shorewall_prerequisites.xml"
|
||||
shorewall_features.xml
|
||||
shorewall_prerequisites.xml
|
||||
SimpleBridge.xml"
|
||||
|
||||
list_search() # $1 = element to search for , $2-$n = list
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user