docs.js
authorAlan Knowles <alan@akkbhome.com>
Tue, 22 Jun 2010 14:34:46 +0000 (22:34 +0800)
committerAlan Knowles <alan@akkbhome.com>
Tue, 22 Jun 2010 14:34:46 +0000 (22:34 +0800)
docs.js

diff --git a/docs.js b/docs.js
index f9d64a7..174c711 100644 (file)
--- a/docs.js
+++ b/docs.js
@@ -42,6 +42,17 @@ ns_list = ns_list.sort();
 
 
 // which languages do we want to output for.
+langs=[];
+File.list(__script_path__ + '/templates/').forEach(function(f) {
+    if (!File.isDirectory(__script_path__ + '/templates/' + f)) {
+        continue;
+    }
+    if (f == 'resources') {
+        continue;
+    }
+    langs.push(f);
+});
+
 
 
 var cls_template = new Template(__script_path__ + '/templates/class.html');