[PATCH 7/8] doc: Add object types and links to arguments int protocol documentation

Derek Foreman derekf at osg.samsung.com
Wed Jan 21 08:31:44 PST 2015


This seems like a big win to me.

Reviewed-by: Derek Foreman <derekf at osg.samsung.com>

On 02/01/15 08:29 PM, Bill Spitzak wrote:
> This makes it a lot easier to figure out what is going on!
> ---
>  doc/publican/protocol-to-docbook.xsl |   35 ++++++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
> 
> diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl
> index 723f5e6..ca1308f 100644
> --- a/doc/publican/protocol-to-docbook.xsl
> +++ b/doc/publican/protocol-to-docbook.xsl
> @@ -111,6 +111,41 @@
>    </varlistentry>
>  </xsl:template>
>  
> +<!-- id arguments -->
> +<xsl:template match="arg[@type='object' and @interface]">
> +  <varlistentry>
> +    <term><xsl:value-of select="@name"/></term>
> +    <listitem>
> +        <simpara>
> +          <link linkend="protocol-spec-{@interface}">
> +            <xsl:value-of select="@interface"/>
> +          </link>
> +          <xsl:if test="@summary" >
> +            <xsl:text> </xsl:text><xsl:value-of select="@summary"/>
> +          </xsl:if>
> +        </simpara>
> +    </listitem>
> +  </varlistentry>
> +</xsl:template>
> +
> +<!-- new_id arguments -->
> +<xsl:template match="arg[@type='new_id' and @interface]">
> +  <varlistentry>
> +    <term><xsl:value-of select="@name"/></term>
> +    <listitem>
> +        <simpara>
> +          id for the new
> +          <link linkend="protocol-spec-{@interface}">
> +            <xsl:value-of select="@interface"/>
> +          </link>
> +          <xsl:if test="@summary" >
> +            <xsl:text> </xsl:text><xsl:value-of select="@summary"/>
> +          </xsl:if>
> +        </simpara>
> +    </listitem>
> +  </varlistentry>
> +</xsl:template>
> +
>  <!-- Request/event list -->
>  <xsl:template match="request|event|enum">
>    <section id="protocol-spec-{../@name}-{name()}-{@name}">
> 




More information about the wayland-devel mailing list