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

Nils Chr. Brause nilschrbrause at gmail.com
Mon Oct 26 04:47:47 PDT 2015


Hi,

On Sat, Oct 24, 2015 at 1:07 PM, Auke Booij <auke at tulcod.com> wrote:
> Signed-off-by: Auke Booij <auke at tulcod.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

Nice.

Reviewed-by: <nilschrbrause at googlemail.com>

Cheers,
Nils


More information about the wayland-devel mailing list