diff options
author | James Henstridge <james@daa.com.au> | 2002-11-26 11:05:38 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2002-11-26 11:05:38 +0000 |
commit | 34a10b814c1c5551b64e89a4f360f41a53925b9a (patch) | |
tree | 5930ee9687c3d9bb5b4e97735f7e5abf88b3c1c5 /gtkdoc-mkhtml.in | |
parent | bb4555ffe3f18881390a762e277addb8e42fe8b3 (diff) | |
download | gtk-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.in | 8 |
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 |