diff options
author | James Henstridge <james@daa.com.au> | 2002-06-13 17:22:25 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-06-13 17:22:25 +0000 |
commit | 9a645c54cdc958ca1ca979f638b039c2a46cd475 (patch) | |
tree | 73282e0f85be3ea699d5145eaa5be8ab579c49f6 /gtkdoc-mkhtml.in | |
parent | acfb2b81bc0d77212064263ec344005928b27c24 (diff) | |
download | gtk-doc-9a645c54cdc958ca1ca979f638b039c2a46cd475.tar.gz |
Make header-grabbing work without an explicit --main-sgml-file argument.
* gtkdoc-mkdb.in: Make header-grabbing work without an explicit
--main-sgml-file argument.
* gtkdoc-mkdb.in: Emit the object hierarchy as a <screen> rather
than a <literallayout>, since the Docbook XSL stylesheets don't
handle <link>s inside <literallayout>.
* gtkdoc-mkdb.in: Decide wether to generate standalone documents
for XIncluding or entities based on the presence of the XInclude
namespace declaration on the document element.
2002-06-09 James Henstridge <james@daa.com.au>
* gtkdoc-mkdb.in: try to grab the header off the top of the main
sgml file.
2002-05-31 James Henstridge <james@daa.com.au>
* gtkdoc-mkdb.in (OutputSGML): put XIncludes in the $book_bottom
variable.
(OutputBook): add the XInclude namespace declaration to the book
element.
* gtkdoc-mkhtml.in (declaration): if the document looks like XML,
process it with xsltproc.
* configure.in: check for xsltproc.
* gtk-doc.xsl: start of XSLT template for converting docbook/xml
to HTML.
Diffstat (limited to 'gtkdoc-mkhtml.in')
-rw-r--r-- | gtkdoc-mkhtml.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gtkdoc-mkhtml.in b/gtkdoc-mkhtml.in index 0679cb7..b82c72d 100644 --- a/gtkdoc-mkhtml.in +++ b/gtkdoc-mkhtml.in @@ -23,7 +23,9 @@ gtkdocdir=@datadir@/gtk-doc declaration=$gtkdocdir/gtk-doc.dcl if head -1 $document | grep -q "<?xml"; then - declaration=$gtkdocdir/xml.dcl + is_xml=true +else + is_xml=false fi # Delete the old index.sgml file, if it exists. @@ -31,7 +33,13 @@ if test -f index.sgml; then rm -f index.sgml fi -@JADE@ -t sgml -w no-idref -d $gtkdocdir/gtk-doc.dsl $declaration $document +if $is_xml; then + @XSLTPROC@ --xinclude $gtkdocdir/gtk-doc.xsl $document +else + @JADE@ -t sgml -w no-idref -d $gtkdocdir/gtk-doc.dsl \ + $gtkdocdir/gtk-doc.dcl $document +fi + sed s%href=\"%href=\"$module/% < index.sgml > index.sgml.tmp && mv index.sgml.tmp index.sgml echo "timestamp" > ../html.stamp |