[gtk-doc] Don't display titles on admonition blocks



commit c4d3f71b33fcf4ef0da92dbb4fccbd3a1fcf1d7f
Author: William Jon McCann <william jon mccann gmail com>
Date:   Mon Feb 10 17:55:14 2014 -0500

    Don't display titles on admonition blocks
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724099

 gtk-doc-single.xsl |    5 ++++-
 gtk-doc.xsl        |    3 +++
 style/style.css    |   10 ++++++----
 3 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/gtk-doc-single.xsl b/gtk-doc-single.xsl
index 22b0438..552ff94 100644
--- a/gtk-doc-single.xsl
+++ b/gtk-doc-single.xsl
@@ -39,6 +39,9 @@
   <xsl:param name="gtkdoc.version" select="''"/>
   <xsl:param name="gtkdoc.bookname" select="''"/>
 
+  <!-- Override the typical template to prevent showing titles -->
+  <xsl:param name="admon.textlabel" select="0"/>
+
   <!-- ========================================================= -->
   <!-- template to create the index.sgml anchor index -->
 
@@ -135,7 +138,7 @@ Get a newer version at http://docbook.sourceforge.net/projects/xsl/
     <xsl:apply-imports/>
   </xsl:template>
 
- <xsl:template name="user.head.title">
+  <xsl:template name="user.head.title">
     <xsl:variable name="home" select="/*[1]"/>
     <title>
       <xsl:apply-templates select="$home" mode="object.title.markup"/>: <xsl:copy-of select="$title"/>
diff --git a/gtk-doc.xsl b/gtk-doc.xsl
index 04311b5..d70d525 100644
--- a/gtk-doc.xsl
+++ b/gtk-doc.xsl
@@ -62,6 +62,9 @@
   <xsl:param name="gtkdoc.version" select="''"/>
   <xsl:param name="gtkdoc.bookname" select="''"/>
 
+  <!-- Override the typical template to prevent showing titles -->
+  <xsl:param name="admon.textlabel" select="0"/>
+
   <!-- ========================================================= -->
 
   <!-- l10n is slow, we don't ue it, so we'd like to turn it off
diff --git a/style/style.css b/style/style.css
index 7db9294..abce47d 100644
--- a/style/style.css
+++ b/style/style.css
@@ -300,13 +300,15 @@ div.blockquote
   border-style: solid;
   margin: 2em;
 }
-.note h3, .warning h3
+.note p, .warning p
 {
-  margin-top: 0.0em
+  margin: 0;
 }
-.note p, .warning p
+
+div.warning h3.title,
+div.note h3.title
 {
-  margin-bottom: 0.0em
+  display: none;
 }
 
 p + div.section


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]