[Telepathy-commits] [telepathy-spec/master] Add deprecation notes to interface summary

Davyd Madeley davyd at madeley.id.au
Mon Mar 23 12:29:31 PDT 2009


---
 doc/templates/errors.html        |    9 ++++++++-
 doc/templates/generic-types.html |    9 ++++++++-
 doc/templates/interface.html     |   36 ++++++++++++++++++++++++++++++++----
 3 files changed, 48 insertions(+), 6 deletions(-)

diff --git a/doc/templates/errors.html b/doc/templates/errors.html
index 6c5862c..6811a73 100644
--- a/doc/templates/errors.html
+++ b/doc/templates/errors.html
@@ -18,8 +18,15 @@
     <h3>Errors</h3>
     <table class="summary">
      #for $error in $spec.errors.values()
-      <tr>
+      #if $error.deprecated
+       <tr class="deprecated">
+      #else
+       <tr>
+      #end if
        <td><a href="$error.get_url()">$error.short_name</a></td>
+       <td>
+        #if $error.deprecated: (deprecated)
+       </td>
       </tr>
      #end for
     </table>
diff --git a/doc/templates/generic-types.html b/doc/templates/generic-types.html
index 096868e..89eeb8c 100644
--- a/doc/templates/generic-types.html
+++ b/doc/templates/generic-types.html
@@ -18,10 +18,17 @@
      <h3>Generic Types</h3>
      <table class="summary">
       #for $type in $spec.generic_types
-      <tr>
+       #if $type.deprecated
+        <tr class="deprecated">
+       #else
+        <tr>
+       #end if
        <td><a href="$type.get_url()">$type.short_name</a></td>
        <td>$type.get_type_name()</td>
        <td>$type.dbus_type</td>
+       <td>
+        #if $type.deprecated: (deprecated)
+       </td>
       </tr>
       #end for
      </table>
diff --git a/doc/templates/interface.html b/doc/templates/interface.html
index 9e7698e..dddd1b5 100644
--- a/doc/templates/interface.html
+++ b/doc/templates/interface.html
@@ -23,11 +23,18 @@
      <h3>Methods</h3>
      <table class="summary">
       #for $method in $interface.methods
-      <tr>
+       #if $method.deprecated
+        <tr class="deprecated">
+       #else
+        <tr>
+       #end if
        <td><a href="$method.get_url()">$method.short_name</a></td>
        <td>($method.get_in_args())</td>
        <td>&#8594;</td>
        <td>$method.get_out_args()</td>
+       <td>
+        #if $method.deprecated: (deprecated)
+       </td>
       </tr>
       #end for
      </table>
@@ -37,9 +44,16 @@
      <h3>Signals</h3>
      <table class="summary">
       #for $signal in $interface.signals
-      <tr>
+       #if $signal.deprecated
+        <tr class="deprecated">
+       #else
+        <tr>
+       #end if
        <td><a href="$signal.get_url()">$signal.short_name</a></td>
        <td>($signal.get_args())</td>
+       <td>
+        #if $signal.deprecated: (deprecated)
+       </td>
       </tr>
       #end for
      </table>
@@ -49,13 +63,20 @@
      <h3>Properties</h3>
      <table class="summary">
       #for $property in $interface.properties
-      <tr>
+       #if $property.deprecated
+        <tr class="deprecated">
+       #else
+        <tr>
+       #end if
        <td><a href="$property.get_url()">$property.short_name</a></td>
        <td>
         $property.dbus_type
         #if $property.type: (<a href="$property.get_type_url()" title="$property.get_type_title()">$property.get_type().short_name</a>)
        </td>
        <td>$property.get_access()</td>
+       <td>
+        #if $property.deprecated: (deprecated)
+       </td>
       </tr>
       #end for
     </table>
@@ -65,10 +86,17 @@
      <h3>Types</h3>
      <table class="summary">
       #for $type in $interface.types
-      <tr>
+       #if type.deprecated
+        <tr class="deprecated">
+       #else
+        <tr>
+       #end if
        <td><a href="$type.get_url()">$type.short_name</a></td>
        <td>$type.get_type_name()</td>
        <td>$type.dbus_type</td>
+       <td>
+        #if $type.deprecated: (deprecated)
+       </td>
       </tr>
       #end for
      </table>
-- 
1.5.6.5




More information about the telepathy-commits mailing list