summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Leupold <lemma@leunet.de>2009-08-01 16:29:27 +0200
committerStef Walter <stefw@collabora.co.uk>2010-12-04 16:11:41 +0000
commit01d37dc2d31277bc6d55fa2a7c689a681443e1e7 (patch)
tree85344ab63df83b355b752774c657a82803e3f48c
parent24427d24927bbd22b3b82a6d04d3d0df05346867 (diff)
downloadxdg-specs-01d37dc2d31277bc6d55fa2a7c689a681443e1e7.tar.xz
Make a list of funcsynopses instead of single synopses for each funcdef. Add a style to prettify.
-rw-r--r--secret-service/html/style.css102
-rw-r--r--secret-service/tools/spec-to-docbook.xsl10
2 files changed, 108 insertions, 4 deletions
diff --git a/secret-service/html/style.css b/secret-service/html/style.css
new file mode 100644
index 0000000..6566fc0
--- /dev/null
+++ b/secret-service/html/style.css
@@ -0,0 +1,102 @@
+/* reference.css, a stylesheet for reference documentation
+ * generated by the DocBook XSL Stylesheets */
+/* $Id: reference.css 8234 2009-02-09 12:10:48Z xmldoc $ */
+
+div.legalnotice {
+ font-size: 80%;
+}
+
+div.note, div.tip, div.warning {
+ margin-left: 5%;
+ margin-right: 10%;
+ padding: 5px;
+}
+
+div.note, div.tip {
+ border-left: solid #d5dee3 20px;
+ border-right: solid #d5dee3 20px;
+}
+
+div.note, div.tip {
+ border-left: solid palegreen 20px;
+ border-right: solid palegreen 20px;
+}
+
+div.warning {
+ border-left: solid yellow 20px;
+ border-right: solid yellow 20px;
+}
+
+div.note p, div.tip p, div.warning p {
+ margin-top: 0px;
+ margin-bottom: 4px;
+}
+
+div.note h3, div.tip h3, div.warning h3 {
+ margin-top: 0;
+}
+
+div.informalexample {
+ background-color: #d5dee3;
+ border-top-width: 2px;
+ border-top-style: double;
+ border-top-color: #d3d3d3;
+ border-bottom-width: 2px;
+ border-bottom-style: double;
+ border-bottom-color: #d3d3d3;
+ padding: 4px;
+ margin: 0em;
+ margin-left: 2em;
+}
+
+pre.programlisting, pre.synopsis {
+ whitespace: pre;
+ font-family: monospace;
+ background-color: #d5dee3;
+ border-top-width: 1px;
+ border-top-style: single;
+ border-top-color: #d3d3d3;
+ border-bottom-width: 1px;
+ border-bottom-style: single;
+ border-bottom-color: #d3d3d3;
+ padding: 4px;
+ margin: 0em;
+ margin-top: 6px;
+ margin-bottom: 6px;
+}
+
+div.informalexample pre {
+ whitespace: pre;
+ font-family: monospace;
+ border-top-width: 0px;
+ border-bottom-width: 0px;
+ padding: 0px;
+}
+
+/* Parameter and PI titles */
+ div.refnamediv h2 {
+ font-size: 2em;
+}
+
+div.funcsynopsis {
+ padding: 0.5em;
+ background-color: #F4F4F4;
+ border: 1px solid gray;
+}
+
+div.funcprototype-spacer {
+ max-height: 0.5em;
+}
+
+table.funcprototype-table * td {
+ font-size: 0.9em;
+}
+
+table.funcprototype-table * td code.funcdef {
+ font-size: 1.1em;
+}
+
+b.fsfunc {
+ display: inline-block;
+ min-width: 11em;
+} \ No newline at end of file
diff --git a/secret-service/tools/spec-to-docbook.xsl b/secret-service/tools/spec-to-docbook.xsl
index 1917798..8b6c223 100644
--- a/secret-service/tools/spec-to-docbook.xsl
+++ b/secret-service/tools/spec-to-docbook.xsl
@@ -344,13 +344,17 @@
<xsl:if test="method">
<refsect2>
<title>Methods</title>
- <xsl:apply-templates select="method" mode="funcsynopsislinked"/>
+ <funcsynopsis>
+ <xsl:apply-templates select="method" mode="funcsynopsislinked"/>
+ </funcsynopsis>
</refsect2>
</xsl:if>
<xsl:if test="signal">
<refsect2>
<title>Signals</title>
- <xsl:apply-templates select="signal" mode="funcsynopsislinked"/>
+ <funcsynopsis>
+ <xsl:apply-templates select="signal" mode="funcsynopsislinked"/>
+ </funcsynopsis>
</refsect2>
</xsl:if>
</refsynopsisdiv>
@@ -799,7 +803,6 @@
</xsl:template>
<xsl:template match="method|signal" mode="funcsynopsislinked">
- <funcsynopsis>
<funcprototype>
<funcdef>
<function linkend="{concat(parent::interface//@name, '.', @name)}">
@@ -815,7 +818,6 @@
</xsl:otherwise>
</xsl:choose>
</funcprototype>
- </funcsynopsis>
</xsl:template>
<xsl:template match="method" mode="detail">