Added support for custom embedded CSS stylesheets in HTML output

This commit is contained in:
Pierre Pronchery 2014-05-29 14:24:59 +02:00
parent 7ad4e85d64
commit d343bc54ab
2 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,7 @@ _docbook()
html)
XSL="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
[ -f "${target%.*}.xsl" ] && XSL="${target%.*}.xsl"
[ -f "${target%.*}.css.xml" ] && XSLTPROC="$XSLTPROC --param custom.css.source \"${target%.*}.css.xml\" --param generate.css.header 1"
$DEBUG $XSLTPROC -o "$target" "$XSL" "$source"
;;
pdf)

View File

@ -58,6 +58,7 @@ _docbook()
html)
XSL="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
[ -f "${target%.*}.xsl" ] && XSL="${target%.*}.xsl"
[ -f "${target%.*}.css.xml" ] && XSLTPROC="$XSLTPROC --param custom.css.source \"${target%.*}.css.xml\" --param generate.css.header 1"
$DEBUG $XSLTPROC -o "$target" "$XSL" "$source"
;;
pdf)