summaryrefslogtreecommitdiff
path: root/gtkdoc-mkhtml.in
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2002-11-26 11:05:38 +0000
committerJames Henstridge <jamesh@src.gnome.org>2002-11-26 11:05:38 +0000
commit34a10b814c1c5551b64e89a4f360f41a53925b9a (patch)
tree5930ee9687c3d9bb5b4e97735f7e5abf88b3c1c5 /gtkdoc-mkhtml.in
parentbb4555ffe3f18881390a762e277addb8e42fe8b3 (diff)
downloadgtk-doc-34a10b814c1c5551b64e89a4f360f41a53925b9a.tar.gz
set gtkdoc-bookname and gtkdoc-version parameters in sgml mode, and don't
2002-11-26 James Henstridge <james@daa.com.au> * gtkdoc-mkhtml.in: set gtkdoc-bookname and gtkdoc-version parameters in sgml mode, and don't bother with the sed run after processing with jade. In XML mode, pass the version number in as a parameter too. * gtk-doc.dsl.in ($user-html-header$): add <meta> tag if gtkdoc-version is set. (generate-index-mode): if gtkdoc-bookname is set, add it to the hrefs in the index file, like the XSLT sheets do. * gtk-doc.xsl: add gtkdoc.version parameter, and use it to add a <meta> tag with the gtk-doc version number.
Diffstat (limited to 'gtkdoc-mkhtml.in')
-rw-r--r--gtkdoc-mkhtml.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtkdoc-mkhtml.in b/gtkdoc-mkhtml.in
index 330ee1d..71af5a0 100644
--- a/gtkdoc-mkhtml.in
+++ b/gtkdoc-mkhtml.in
@@ -34,13 +34,15 @@ if test -f index.sgml; then
fi
if $is_xml; then
- @XSLTPROC@ --xinclude --stringparam gtkdoc.bookname $module $gtkdocdir/gtk-doc.xsl $document
+ @XSLTPROC@ --xinclude \
+ --stringparam gtkdoc.bookname $module \
+ --stringparam gtkdoc.version "@VERSION@" \
+ $gtkdocdir/gtk-doc.xsl $document
cp -f $gtkdocdir/*.png .
else
@JADE@ -t sgml -w no-idref -d $gtkdocdir/gtk-doc.dsl \
+ -V "gtkdoc-bookname=$module" -V "gtkdoc-version=@VERSION@" \
$gtkdocdir/gtk-doc.dcl $document
-
- sed s%href=\"%href=\"$module/% < index.sgml > index.sgml.tmp && mv index.sgml.tmp index.sgml
fi
echo "timestamp" > ../html.stamp