From 4170023d6326a8c5dd15c7e5688c97f5c3a14c49 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Thu, 16 Dec 2010 12:51:47 +0000 Subject: Make the generation of the generic-types and errors pages dependent on there being content for them. --- doc/templates/devhelp.devhelp2 | 4 ++++ doc/templates/index.html | 10 ++++++++++ doc/templates/interfaces.html | 10 ++++++++++ 3 files changed, 24 insertions(+) (limited to 'doc') diff --git a/doc/templates/devhelp.devhelp2 b/doc/templates/devhelp.devhelp2 index 6cf685ac..770a93c6 100644 --- a/doc/templates/devhelp.devhelp2 +++ b/doc/templates/devhelp.devhelp2 @@ -4,8 +4,12 @@ #for $interface in $spec.interfaces #end for +#if len($spec.generic_types) > 0 +#end if +#if len($spec.errors) > 0 +#end if diff --git a/doc/templates/index.html b/doc/templates/index.html index 7c03fe6c..0a3cde58 100644 --- a/doc/templates/index.html +++ b/doc/templates/index.html @@ -10,8 +10,12 @@

$spec.title

Interfaces (Compact) +#if len($spec.generic_types) > 0 | Generic Types +#end if +#if len($spec.errors) > 0 | Errors +#end if | Full Index @@ -66,12 +70,18 @@ $output($spec.items) +#if len($spec.generic_types) > 0 or len($spec.errors) > 0

Other

    + #if len($spec.generic_types) > 0
  • Generic Types
  • + #end if + #if len($spec.errors) > 0
  • Errors
  • + #end if
+#end if diff --git a/doc/templates/interfaces.html b/doc/templates/interfaces.html index a93334c6..a3ee5040 100644 --- a/doc/templates/interfaces.html +++ b/doc/templates/interfaces.html @@ -9,8 +9,12 @@

$spec.title

Full +#if len($spec.generic_types) > 0 | Generic Types +#end if +#if len($spec.errors) > 0 | Errors +#end if | Full Index
@@ -38,12 +42,18 @@ #end for +#if len($spec.generic_types) > 0 or len($spec.errors) > 0

Other

    + #if len($spec.generic_types) > 0
  • Generic Types
  • + #end if + #if len($spec.errors) > 0
  • Errors
  • + #end if
+#end if -- cgit v1.2.3