doc: removed the word "interface" from the link names
authorBill Spitzak <spitzak@gmail.com>
Fri, 19 Dec 2014 04:15:06 +0000 (20:15 -0800)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 19 Dec 2014 14:15:29 +0000 (16:15 +0200)
Just to make it slightly shorter.

Also add a dash to the doxygen links to make them look a bit more alike.

Tested-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
doc/publican/doxygen-to-publican.xsl
doc/publican/protocol-interfaces-to-docbook.xsl
doc/publican/protocol-to-docbook.xsl
doc/publican/sources/Protocol.xml

index 5adbfa6..0ed7030 100644 (file)
@@ -70,7 +70,7 @@
 </xsl:template>
 
 <xsl:template match="ref">
-  <link linkend="{$which}{@refid}"><xsl:value-of select="." /></link>
+  <link linkend="{$which}-{@refid}"><xsl:value-of select="." /></link>
 </xsl:template>
 
 <xsl:template match="simplesect[@kind='return']">
 <!-- methods -->
 <xsl:template match="memberdef" >
   <xsl:if test="@kind = 'function' and @static = 'no'">
-    <varlistentry id="{$which}{@id}">
+    <varlistentry id="{$which}-{@id}">
         <term>
           <xsl:value-of select="name"/>
           <xsl:if test="normalize-space(briefdescription) != ''">
 <!-- classes -->
 <xsl:template match="compounddef" >
   <xsl:if test="@kind = 'class'">
-    <varlistentry id="{$which}{@id}">
+    <varlistentry id="{$which}-{@id}">
         <term>
             <xsl:value-of select="compoundname" />
             <xsl:if test="normalize-space(briefdescription) != ''">
index 57b3139..f68216d 100644 (file)
     </para>
 
     <para>
-    Core interfaces:
-    <variablelist>
-    <xsl:apply-templates select="protocol/interface" />
-    </variablelist>
+      Core interfaces:
+      <variablelist>
+        <xsl:apply-templates select="protocol/interface" />
+      </variablelist>
     </para>
   </section>
 </xsl:template>
@@ -35,7 +35,7 @@
 <xsl:template match="interface" >
 <varlistentry>
   <term>
-    <link linkend="protocol-spec-interface-{@name}">
+    <link linkend="protocol-spec-{@name}">
       <xsl:value-of select="@name" />
     </link>
   </term>
index a43c9fa..354ff3a 100644 (file)
@@ -49,9 +49,7 @@
 
 <!-- Interface descriptions -->
 <xsl:template match="interface" >
-  <section>
-    <xsl:attribute name="id">protocol-spec-<xsl:value-of select="name()"/>-<xsl:value-of select="@name" />
-    </xsl:attribute>
+  <section id="protocol-spec-{@name}">
     <title>
       <xsl:value-of select="@name" />
       <!-- only show summary if it exists -->
 
 <!-- Request/event list -->
 <xsl:template match="request|event|enum">
-  <section>
-    <xsl:attribute name="id">protocol-spec-interface-<xsl:value-of select="../@name"/>-<xsl:value-of select="name()"/>-<xsl:value-of select="@name"/></xsl:attribute>
+  <section id="protocol-spec-{../@name}-{name()}-{@name}">
     <title>
       <xsl:value-of select="../@name"/>::<xsl:value-of select="@name" />
       <xsl:if test="description/@summary">
index b79b6be..5f3e852 100644 (file)
       The compositor is a global object, advertised at connect time.
     </para>
     <para>
-      See <xref linkend="protocol-spec-interface-wl_compositor"/> for the
+      See <xref linkend="protocol-spec-wl_compositor"/> for the
       protocol description.
     </para>
   </section>
       cannot access other clients surfaces.
     </para>
     <para>
-      See <xref linkend="protocol-spec-interface-wl_surface"/> for the protocol
+      See <xref linkend="protocol-spec-wl_surface"/> for the protocol
       description.
     </para>
   </section>
       or triple clicks.
     </para>
     <para>
-      See <xref linkend="protocol-spec-interface-wl_seat"/> for the
+      See <xref linkend="protocol-spec-wl_seat"/> for the
       protocol description.
     </para>
     <para>
       comes and goes.
     </para>
     <para>
-      See <xref linkend="protocol-spec-interface-wl_output"/> for the protocol
+      See <xref linkend="protocol-spec-wl_output"/> for the protocol
       description.
     </para>
     <para>
       that implements copy-paste and drag-and-drop support.
     </para>
     <para>
-      See <xref linkend="protocol-spec-interface-wl_data_offer"/>,
-      <xref linkend="protocol-spec-interface-wl_data_source"/>,
-      <xref linkend="protocol-spec-interface-wl_data_device"/> and
-      <xref linkend="protocol-spec-interface-wl_data_device_manager"/> for
+      See <xref linkend="protocol-spec-wl_data_offer"/>,
+      <xref linkend="protocol-spec-wl_data_source"/>,
+      <xref linkend="protocol-spec-wl_data_device"/> and
+      <xref linkend="protocol-spec-wl_data_device_manager"/> for
       protocol descriptions.
     </para>
     <para>