[introspection-doc-generator] tidy up template



commit 12ad9db7e21ea83f39ce2affdba602de3e88ce30
Author: Alan Knowles <alan akkbhome com>
Date:   Fri Apr 30 07:28:33 2010 +0800

    tidy up template
    
    Last commit added beta changes to template .. - need to fix them up a bit

 docs.js         |    3 +-
 docs/index.html |   68 ++++++++++++++++++++++++++++++-------------------------
 2 files changed, 39 insertions(+), 32 deletions(-)
---
diff --git a/docs.js b/docs.js
index 9755ebe..cc82686 100644
--- a/docs.js
+++ b/docs.js
@@ -67,7 +67,8 @@ ns_list.map(function(ns_name)
         
     };
     for (var i in actions) {
-        idx[i]= ns[i].length;
+        // we flag GLib as a GObject lib...
+        idx[i]= ns_name == 'GLib' ? 1 : ns[i].length ;
         ns[i].map( function(n) {
             Gio.simple_write(outputdir + '/'+ ns_name + '.' + n + '.html', 
                 cls_template.process(
diff --git a/docs/index.html b/docs/index.html
index 0a852cf..b411cc1 100755
--- a/docs/index.html
+++ b/docs/index.html
@@ -9,38 +9,44 @@
  </head>
  
  <body>
- 
-<div id="page">
-
- 	<div id="header">
-    <div id="header-wrap">
-      <h1>Un-official Seed Documentation</h1>
-    </div>
- 	</div>
+     
+    <div id="page">
 
- <h2>GObject Libraries</h2>
-  <for each="thisClass" in="data">
-    {!
-    if (!thisClass.objects) { continue; }
-    !}
-    <div>
-    	<h2 class="classTitle">{+ (new Link().toSymbol(thisClass.name)) +}</h2>
+        <div id="header">
+            <div id="header-wrap">
+                <h1>Un-official Seed Documentation</h1>
+            </div>
+        </div>
+        <div class="body-wrap">
+                
+            <div class="ns-list">
+                <h2>GObject Libraries</h2>
+                <for each="thisClass" in="data">
+                    {!
+                    if (!thisClass.objects) { continue; }
+                    !}
+                    <div>
+                        <h2 class="classTitle">{+ (new Link().toSymbol(thisClass.name)) +}</h2>
+                    </div>
+                </for>
+            </div>
+            
+            <div class="ns-list">
+     
+                <h2>Non - GObject Libraries</h2>
+                <for each="thisClass" in="data">
+                    {!
+                    if (thisClass.objects) { continue; }
+                    !}
+                    <div>
+                        <h2 class="classTitle">{+ (new Link().toSymbol(thisClass.name)) +}</h2>
+                    </div>
+                </for>
+            </div> 
+     
+        </div>
     </div>
-  </for>
- 
- <h2>Non - GObject Libraries</h2>
-  <for each="thisClass" in="data">
-    {!
-    if (thisClass.objects) { continue; }
-    !}
-    <div>
-    	<h2 class="classTitle">{+ (new Link().toSymbol(thisClass.name)) +}</h2>
-    </div>
-  </for>
- 
- 
-</div>
- </body>
- </html>
+</body>
+</html>
 
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]