docs.js
[gnome.introspection-doc-generator] / docs.js
diff --git a/docs.js b/docs.js
index f9d64a7..85cfd83 100644 (file)
--- a/docs.js
+++ b/docs.js
@@ -42,6 +42,24 @@ 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({
+        
+       
+    
+         cls_template       : new Template(__script_path__ + '/templates/' + f + '/class.html'),
+         cls_ix_template    : new Template(__script_path__ + '/templates/' + f + '/class_ix.html'),
+         reference_template : new Template(__script_path__ + '/templates/' + f + '/references.html'),
+    });
+});
+
 
 
 var cls_template = new Template(__script_path__ + '/templates/class.html');