[PATCH wayland v3 4/4] doc: output enum and bitfield attributes in the documentation

Bryce Harrington bryce at osg.samsung.com
Mon Oct 26 11:07:16 PDT 2015


On Sat, Oct 24, 2015 at 12:07:50PM +0100, Auke Booij wrote:
> Signed-off-by: Auke Booij <auke at tulcod.com>

Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>
> ---
>  doc/publican/protocol-to-docbook.xsl | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl
> index 7b45969..fad207a 100644
> --- a/doc/publican/protocol-to-docbook.xsl
> +++ b/doc/publican/protocol-to-docbook.xsl
> @@ -102,6 +102,12 @@
>      <term><xsl:value-of select="@name"/></term>
>      <listitem>
>          <simpara>
> +          <xsl:if test="@enum">
> +            <link linkend="protocol-spec-{../../@name}-enum-{@enum}">
> +              <xsl:value-of select="@enum"/>
> +            </link>
> +	    <xsl:text> </xsl:text>
> +          </xsl:if>
>            <xsl:value-of select="@type"/>
>            <xsl:if test="@summary" >
>              - <xsl:value-of select="@summary"/>
> @@ -171,6 +177,9 @@
>    <section id="protocol-spec-{../@name}-{name()}-{@name}">
>      <title>
>        <xsl:value-of select="../@name"/>::<xsl:value-of select="@name" />
> +      <xsl:if test="@bitfield">
> +        - bitfield
> +      </xsl:if>
>        <xsl:if test="description/@summary">
>          - <xsl:value-of select="description/@summary" />
>        </xsl:if>
> -- 
> 2.6.1
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list