summaryrefslogtreecommitdiffstats
path: root/docs/ref-html-style.xsl
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2006-07-12 23:06:52 +0000
committerJohan Dahlin <johan@src.gnome.org>2006-07-12 23:06:52 +0000
commit3bd20fd42ba96ab19ea217d7b224c766d00cc06a (patch)
treee2dc99b09ccddcc5947b3c1c3541dcd6e7de9590 /docs/ref-html-style.xsl
parent347a9c39026842ea4d7fa97f931093209b23c97f (diff)
downloadpygobject-3bd20fd42ba96ab19ea217d7b224c766d00cc06a.tar.gz
pygobject-3bd20fd42ba96ab19ea217d7b224c766d00cc06a.tar.xz
pygobject-3bd20fd42ba96ab19ea217d7b224c766d00cc06a.zip
Import GObject part of John Finlay's PyGTK Reference Manual, copy over
* Makefile.am: * configure.ac: * docs/.cvsignore: * docs/Makefile.am: * docs/common.xsl: * docs/devhelp.xsl: * docs/html.xsl: * docs/pdf-style.xsl: * docs/pdf.xsl: * docs/ref-html-style.xsl: * docs/reference/.cvsignore: * docs/reference/pygobject-classes.xml: * docs/reference/pygobject-constants.xml: * docs/reference/pygobject-functions.xml: * docs/reference/pygobject-gboxed.xml: * docs/reference/pygobject-ginterface.xml: * docs/reference/pygobject-gpointer.xml: * docs/reference/pygobject-maincontext.xml: * docs/reference/pygobject-mainloop.xml: * docs/reference/pygobject-ref.xml: * docs/reference/pygobject.xml: Import GObject part of John Finlay's PyGTK Reference Manual, copy over infrastructure from the pygtk-web module.
Diffstat (limited to 'docs/ref-html-style.xsl')
-rw-r--r--docs/ref-html-style.xsl52
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/ref-html-style.xsl b/docs/ref-html-style.xsl
new file mode 100644
index 0000000..124a117
--- /dev/null
+++ b/docs/ref-html-style.xsl
@@ -0,0 +1,52 @@
+<?xml version='1.0'?> <!--*- mode: xml -*-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version='1.0'>
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+<xsl:include href="common.xsl"/>
+<xsl:include href="html.xsl"/>
+<xsl:include href="devhelp.xsl"/>
+
+ <!-- ========================================================= -->
+ <!-- template to create the index.sgml anchor index -->
+
+ <xsl:template name="generate.index">
+ <xsl:call-template name="write.text.chunk">
+ <xsl:with-param name="filename" select="'index.sgml'"/>
+ <xsl:with-param name="content">
+ <!-- check all anchor and refentry elements -->
+ <xsl:apply-templates select="//anchor|//refentry"
+ mode="generate.index.mode"/>
+ </xsl:with-param>
+ <xsl:with-param name="encoding" select="'utf-8'"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template match="*" mode="generate.index.mode">
+ <xsl:if test="not(@href)">
+ <xsl:text>&lt;ANCHOR id=&quot;</xsl:text>
+ <xsl:value-of select="@id"/>
+ <xsl:text>&quot; href=&quot;</xsl:text>
+ <xsl:if test="$gtkdoc.bookname">
+ <xsl:value-of select="$gtkdoc.bookname"/>
+ <xsl:text>/</xsl:text>
+ </xsl:if>
+ <xsl:call-template name="href.target"/>
+ <xsl:text>&quot;&gt;
+ </xsl:text>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:param name="gtkdoc.version" select="''"/>
+ <xsl:param name="gtkdoc.bookname" select="''"/>
+
+ <xsl:param name="refentry.generate.name" select="0"/>
+ <xsl:param name="refentry.generate.title" select="1"/>
+ <xsl:param name="chapter.autolabel" select="0"/>
+
+ <xsl:template match="book|article">
+ <xsl:apply-imports/>
+ <xsl:call-template name="generate.devhelp"/>
+ <xsl:call-template name="generate.index"/>
+ </xsl:template>
+
+</xsl:stylesheet>