tidy up template
authorAlan Knowles <alan@akkbhome.com>
Thu, 29 Apr 2010 23:28:33 +0000 (07:28 +0800)
committerAlan Knowles <alan@akkbhome.com>
Thu, 29 Apr 2010 23:28:33 +0000 (07:28 +0800)
Last commit added beta changes to template .. - need to fix them up a bit

docs.js
docs/index.html

diff --git a/docs.js b/docs.js
index 9755ebe..cc82686 100644 (file)
--- 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(
index 0a852cf..b411cc1 100755 (executable)
@@ -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>