[gtk-doc/gtk-doc-for-gtk4: 3/7] Add actions to the navigation header
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/gtk-doc-for-gtk4: 3/7] Add actions to the navigation header
- Date: Mon, 23 Dec 2019 18:21:45 +0000 (UTC)
commit c95dc132b890fc8df4f49463ccecdd51410f4de8
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 23 04:11:57 2019 +0000
Add actions to the navigation header
gtk-doc.xsl | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 1a7a1ee..c5d3a9d 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -399,6 +399,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
<xsl:variable name="sect_derived_interfaces" select="./refsect1[@role='derived_interfaces']"/>
<xsl:variable name="sect_implementations" select="./refsect1[@role='implementations']"/>
<xsl:variable name="sect_properties" select="./refsect1[@role='properties']"/>
+ <xsl:variable name="sect_actions" select="./refsect1[@role='actions']"/>
<xsl:variable name="sect_child_properties" select="./refsect1[@role='child_properties']"/>
<xsl:variable name="sect_style_properties" select="./refsect1[@role='style_properties']"/>
<xsl:variable name="sect_signal_proto" select="./refsect1[@role='signal_proto']"/>
@@ -481,6 +482,12 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
<xsl:value-of select="./refsect1[@role='signal_proto']/title"/>
</a></span>
</xsl:if>
+ <xsl:if test="count($sect_actions) > 0">
+ <span id="nav_properties">  <span class="dim">|</span> 
+ <a href="#{$section_id}.actions" class="shortcut">
+ <xsl:value-of select="./refsect1[@role='actions']/title"/>
+ </a></span>
+ </xsl:if>
</xsl:when>
<!-- this is not yet very nice, as it requires all glossdic/indexdiv
elements having a anchor element. maybe we can customize the xsl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]